Home | History | Annotate | Download | only in power_manager
      1 // Copyright (c) 2012 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 
      5 syntax = "proto2";
      6 
      7 option optimize_for = LITE_RUNTIME;
      8 
      9 package power_manager;
     10 
     11 // Included in powerd's InputEvent signals.
     12 message InputEvent {
     13   // Next ID to use: 3
     14 
     15   // Type of event.
     16   enum Type {
     17     POWER_BUTTON_DOWN = 0;
     18     POWER_BUTTON_UP = 1;
     19     LID_OPEN = 2;
     20     LID_CLOSED = 3;
     21     TABLET_MODE_ON = 4;
     22     TABLET_MODE_OFF = 5;
     23   }
     24   optional Type type = 1;
     25 
     26   // Monotonically-increasing time at which this event occured, as given by
     27   // base::TimeTicks::ToInternalValue().
     28   optional int64 timestamp = 2;
     29 }
     30