| // Copyright 2017 The Chromium OS 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 = "chromiumos/system_api/power_manager_proto"; |
| |
| // Included in powerd's ScreenIdleStateChanged signal, emitted when the screen's |
| // dimming or on/off state changes in response to user activity or inactivity. |
| message ScreenIdleState { |
| // Next ID to use: 3 |
| |
| // If true, the screen-dim timeout has been reached. |
| // |
| // Note that this only reflects the inactivity delay. The screen may actually |
| // be turned off due to an earlier user request to reduce its brightness to 0, |
| // for instance. Use kBrightnessChangedSignal if you need to know the |
| // screen brightness currently requested by powerd. |
| optional bool dimmed = 1; |
| |
| // If true, the screen-off timeout has been reached. |
| optional bool off = 2; |
| } |