Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: chromeos/dbus/power_manager_client.h

Issue 2020553003: Hook up TABLET_MODE switch to maximize_mode_controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hook up TABLET_MODE switch to maximize_mode_controller Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void DarkSuspendImminent() {} 81 virtual void DarkSuspendImminent() {}
82 82
83 // Called when the power button is pressed or released. 83 // Called when the power button is pressed or released.
84 virtual void PowerButtonEventReceived(bool down, 84 virtual void PowerButtonEventReceived(bool down,
85 const base::TimeTicks& timestamp) {} 85 const base::TimeTicks& timestamp) {}
86 86
87 // Called when the device's lid is opened or closed. 87 // Called when the device's lid is opened or closed.
88 virtual void LidEventReceived(bool open, 88 virtual void LidEventReceived(bool open,
89 const base::TimeTicks& timestamp) {} 89 const base::TimeTicks& timestamp) {}
90 90
91 // Called when the device's tablet mode switch is on or off.
92 virtual void TabletModeEventReceived(bool on,
93 const base::TimeTicks& timestamp) {}
94
91 // Called when the idle action will be performed after 95 // Called when the idle action will be performed after
92 // |time_until_idle_action|. 96 // |time_until_idle_action|.
93 virtual void IdleActionImminent( 97 virtual void IdleActionImminent(
94 const base::TimeDelta& time_until_idle_action) {} 98 const base::TimeDelta& time_until_idle_action) {}
95 99
96 // Called after IdleActionImminent() when the inactivity timer is reset 100 // Called after IdleActionImminent() when the inactivity timer is reset
97 // before the idle action has been performed. 101 // before the idle action has been performed.
98 virtual void IdleActionDeferred() {} 102 virtual void IdleActionDeferred() {}
99 }; 103 };
100 104
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Create() should be used instead. 201 // Create() should be used instead.
198 PowerManagerClient(); 202 PowerManagerClient();
199 203
200 private: 204 private:
201 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 205 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
202 }; 206 };
203 207
204 } // namespace chromeos 208 } // namespace chromeos
205 209
206 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 210 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698