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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/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 (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 "ash/accelerators/accelerator_controller.h" 8 #include "ash/accelerators/accelerator_controller.h"
9 #include "ash/accelerators/accelerator_table.h" 9 #include "ash/accelerators/accelerator_table.h"
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 19 matching lines...) Expand all
30 30
31 namespace test { 31 namespace test {
32 class PowerButtonControllerTest; 32 class PowerButtonControllerTest;
33 } 33 }
34 34
35 class LockStateController; 35 class LockStateController;
36 36
37 // Handles power & lock button events which may result in the locking or 37 // Handles power & lock button events which may result in the locking or
38 // shutting down of the system as well as taking screen shots while in maximize 38 // shutting down of the system as well as taking screen shots while in maximize
39 // mode. 39 // mode.
40 class ASH_EXPORT PowerButtonController : ui::EventHandler 40 class ASH_EXPORT PowerButtonController
41 : ui::EventHandler
41 // TODO(derat): Remove these ifdefs after DisplayConfigurator becomes 42 // TODO(derat): Remove these ifdefs after DisplayConfigurator becomes
42 // cross-platform. 43 // cross-platform.
43 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
44 , public ui::DisplayConfigurator::Observer 45 ,
46 public ui::DisplayConfigurator::Observer
45 #endif 47 #endif
46 { 48 {
47 public: 49 public:
48 explicit PowerButtonController(LockStateController* controller); 50 explicit PowerButtonController(LockStateController* controller);
49 ~PowerButtonController() override; 51 ~PowerButtonController() override;
50 52
51 void set_has_legacy_power_button_for_test(bool legacy) { 53 void set_has_legacy_power_button_for_test(bool legacy) {
52 has_legacy_power_button_ = legacy; 54 has_legacy_power_button_ = legacy;
53 } 55 }
54 56
55 void set_enable_quick_lock_for_test(bool enable_quick_lock) { 57 void set_enable_quick_lock_for_test(bool enable_quick_lock) {
56 enable_quick_lock_ = enable_quick_lock; 58 enable_quick_lock_ = enable_quick_lock;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool enable_quick_lock_; 100 bool enable_quick_lock_;
99 101
100 LockStateController* controller_; // Not owned. 102 LockStateController* controller_; // Not owned.
101 103
102 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); 104 DISALLOW_COPY_AND_ASSIGN(PowerButtonController);
103 }; 105 };
104 106
105 } // namespace ash 107 } // namespace ash
106 108
107 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ 109 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698