1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto2"; 6 7 option optimize_for = LITE_RUNTIME; 8 9 package power_manager; 10 11 // Included in responses to GetSwitchStates method calls to powerd. 12 message SwitchStates { 13 // Next ID to use: 3 14 15 enum LidState { 16 OPEN = 0; 17 CLOSED = 1; 18 NOT_PRESENT = 2; 19 } 20 optional LidState lid_state = 1; 21 22 enum TabletMode { 23 ON = 0; 24 OFF = 1; 25 UNSUPPORTED = 2; 26 } 27 optional TabletMode tablet_mode = 2; 28 } 29