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

Side by Side Diff: ash/system/power/tablet_power_button_controller.h

Issue 2815453007: cros: Stop forcing off display when lid events are received (Closed)
Patch Set: nits Created 3 years, 8 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
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_ 5 #ifndef ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_
6 #define ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_ 6 #define ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // of PowerButtonController. 55 // of PowerButtonController.
56 bool ShouldHandlePowerButtonEvents() const; 56 bool ShouldHandlePowerButtonEvents() const;
57 57
58 // Handles a power button event. 58 // Handles a power button event.
59 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp); 59 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp);
60 60
61 // Overridden from chromeos::PowerManagerClient::Observer: 61 // Overridden from chromeos::PowerManagerClient::Observer:
62 void PowerManagerRestarted() override; 62 void PowerManagerRestarted() override;
63 void BrightnessChanged(int level, bool user_initiated) override; 63 void BrightnessChanged(int level, bool user_initiated) override;
64 void SuspendDone(const base::TimeDelta& sleep_duration) override; 64 void SuspendDone(const base::TimeDelta& sleep_duration) override;
65 void LidEventReceived(chromeos::PowerManagerClient::LidState state,
66 const base::TimeTicks& timestamp) override;
65 67
66 // Overridden from ShellObserver: 68 // Overridden from ShellObserver:
67 void OnMaximizeModeStarted() override; 69 void OnMaximizeModeStarted() override;
68 void OnMaximizeModeEnded() override; 70 void OnMaximizeModeEnded() override;
69 71
70 // Overridden from ui::EventHandler: 72 // Overridden from ui::EventHandler:
71 void OnKeyEvent(ui::KeyEvent* event) override; 73 void OnKeyEvent(ui::KeyEvent* event) override;
72 void OnMouseEvent(ui::MouseEvent* event) override; 74 void OnMouseEvent(ui::MouseEvent* event) override;
73 75
74 // Overridden from ui::InputDeviceObserver: 76 // Overridden from ui::InputDeviceObserver:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 LockStateController* controller_; // Not owned. 132 LockStateController* controller_; // Not owned.
131 133
132 base::WeakPtrFactory<TabletPowerButtonController> weak_ptr_factory_; 134 base::WeakPtrFactory<TabletPowerButtonController> weak_ptr_factory_;
133 135
134 DISALLOW_COPY_AND_ASSIGN(TabletPowerButtonController); 136 DISALLOW_COPY_AND_ASSIGN(TabletPowerButtonController);
135 }; 137 };
136 138
137 } // namespace ash 139 } // namespace ash
138 140
139 #endif // ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_ 141 #endif // ASH_SYSTEM_POWER_TABLET_POWER_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698