• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Chromium OS 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
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8
9package power_manager;
10
11// Included in powerd's ScreenIdleStateChanged signal, emitted when the screen's
12// dimming or on/off state changes in response to user activity or inactivity.
13message ScreenIdleState {
14  // Next ID to use: 3
15
16  // If true, the screen-dim timeout has been reached.
17  //
18  // Note that this only reflects the inactivity delay. The screen may actually
19  // be turned off due to an earlier user request to reduce its brightness to 0,
20  // for instance. Use kBrightnessChangedSignal if you need to know the
21  // screen brightness currently requested by powerd.
22  optional bool dimmed = 1;
23
24  // If true, the screen-off timeout has been reached.
25  optional bool off = 2;
26}
27