| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| syntax = "proto2"; |
| |
| option optimize_for = LITE_RUNTIME; |
| |
| package power_manager; |
| option go_package = "power_manager_proto"; |
| |
| // Included in responses to GetSwitchStates method calls to powerd. |
| message SwitchStates { |
| // Next ID to use: 3 |
| |
| enum LidState { |
| OPEN = 0; |
| CLOSED = 1; |
| NOT_PRESENT = 2; |
| } |
| optional LidState lid_state = 1; |
| |
| enum TabletMode { |
| ON = 0; |
| OFF = 1; |
| UNSUPPORTED = 2; |
| } |
| optional TabletMode tablet_mode = 2; |
| } |