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

Side by Side Diff: ash/wm/power_button_controller.h

Issue 2855033004: cros: Update touchscreen status with backlights forced off state during start (Closed)
Patch Set: update the test Created 3 years, 7 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 ASH_WM_POWER_BUTTON_CONTROLLER_H_ 5 #ifndef ASH_WM_POWER_BUTTON_CONTROLLER_H_
6 #define ASH_WM_POWER_BUTTON_CONTROLLER_H_ 6 #define ASH_WM_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void OnKeyEvent(ui::KeyEvent* event) override; 45 void OnKeyEvent(ui::KeyEvent* event) override;
46 46
47 // Overriden from display::DisplayConfigurator::Observer: 47 // Overriden from display::DisplayConfigurator::Observer:
48 void OnDisplayModeChanged( 48 void OnDisplayModeChanged(
49 const display::DisplayConfigurator::DisplayStateList& outputs) override; 49 const display::DisplayConfigurator::DisplayStateList& outputs) override;
50 50
51 // Overridden from chromeos::PowerManagerClient::Observer: 51 // Overridden from chromeos::PowerManagerClient::Observer:
52 void PowerButtonEventReceived(bool down, 52 void PowerButtonEventReceived(bool down,
53 const base::TimeTicks& timestamp) override; 53 const base::TimeTicks& timestamp) override;
54 54
55 void ResetTabletPowerButtonControllerForTest();
Daniel Erat 2017/05/03 03:59:37 nit: document what this does, e.g. // Resets |tab
Qiang(Joe) Xu 2017/05/03 04:17:33 Done.
56
55 TabletPowerButtonController* tablet_power_button_controller_for_test() { 57 TabletPowerButtonController* tablet_power_button_controller_for_test() {
56 return tablet_controller_.get(); 58 return tablet_controller_.get();
57 } 59 }
58 60
59 private: 61 private:
60 // Are the power or lock buttons currently held? 62 // Are the power or lock buttons currently held?
61 bool power_button_down_; 63 bool power_button_down_;
62 bool lock_button_down_; 64 bool lock_button_down_;
63 65
64 // True when the volume down button is being held down. 66 // True when the volume down button is being held down.
(...skipping 19 matching lines...) Expand all
84 86
85 // Handles events for convertible/tablet devices. 87 // Handles events for convertible/tablet devices.
86 std::unique_ptr<TabletPowerButtonController> tablet_controller_; 88 std::unique_ptr<TabletPowerButtonController> tablet_controller_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); 90 DISALLOW_COPY_AND_ASSIGN(PowerButtonController);
89 }; 91 };
90 92
91 } // namespace ash 93 } // namespace ash
92 94
93 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ 95 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/system/power/tablet_power_button_controller_unittest.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698