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

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

Issue 800983006: Update {virtual,override,final} to follow C++11 style in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround Created 5 years, 11 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 "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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Called when the power or lock buttons are pressed or released. 62 // Called when the power or lock buttons are pressed or released.
63 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp); 63 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp);
64 void OnLockButtonEvent(bool down, const base::TimeTicks& timestamp); 64 void OnLockButtonEvent(bool down, const base::TimeTicks& timestamp);
65 65
66 // ui::EventHandler: 66 // ui::EventHandler:
67 void OnKeyEvent(ui::KeyEvent* event) override; 67 void OnKeyEvent(ui::KeyEvent* event) override;
68 68
69 #if defined(OS_CHROMEOS) 69 #if defined(OS_CHROMEOS)
70 // Overriden from ui::DisplayConfigurator::Observer: 70 // Overriden from ui::DisplayConfigurator::Observer:
71 virtual void OnDisplayModeChanged( 71 void OnDisplayModeChanged(
72 const ui::DisplayConfigurator::DisplayStateList& outputs) override; 72 const ui::DisplayConfigurator::DisplayStateList& outputs) override;
73 #endif 73 #endif
74 74
75 private: 75 private:
76 friend class test::PowerButtonControllerTest; 76 friend class test::PowerButtonControllerTest;
77 77
78 // Are the power or lock buttons currently held? 78 // Are the power or lock buttons currently held?
79 bool power_button_down_; 79 bool power_button_down_;
80 bool lock_button_down_; 80 bool lock_button_down_;
81 81
(...skipping 16 matching lines...) Expand all
98 bool enable_quick_lock_; 98 bool enable_quick_lock_;
99 99
100 LockStateController* controller_; // Not owned. 100 LockStateController* controller_; // Not owned.
101 101
102 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); 102 DISALLOW_COPY_AND_ASSIGN(PowerButtonController);
103 }; 103 };
104 104
105 } // namespace ash 105 } // namespace ash
106 106
107 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ 107 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698