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

Side by Side Diff: athena/input/public/input_manager.h

Issue 641683003: C++11 override style change for athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 2 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 | « athena/input/power_button_controller.h ('k') | athena/main/athena_content_client.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ 5 #ifndef ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_
6 #define ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ 6 #define ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 } 12 }
13 13
14 namespace ui { 14 namespace ui {
15 class EventTarget; 15 class EventTarget;
16 } 16 }
17 17
18 namespace athena { 18 namespace athena {
19 class AcceleratorManager; 19 class AcceleratorManager;
20 20
21 class PowerButtonObserver { 21 class PowerButtonObserver {
22 public: 22 public:
23 enum State { 23 enum State {
24 PRESSED, 24 PRESSED,
25 LONG_PRESSED, 25 LONG_PRESSED,
26 RELEASED, 26 RELEASED,
27 }; 27 };
28 28 virtual ~PowerButtonObserver() {}
29 virtual void OnPowerButtonStateChanged(State state) = 0; 29 virtual void OnPowerButtonStateChanged(State state) = 0;
30 }; 30 };
31 31
32 class ATHENA_EXPORT InputManager { 32 class ATHENA_EXPORT InputManager {
33 public: 33 public:
34 // Creates and deletes the singleton object of the InputManager 34 // Creates and deletes the singleton object of the InputManager
35 // implementation. 35 // implementation.
36 static InputManager* Create(); 36 static InputManager* Create();
37 static InputManager* Get(); 37 static InputManager* Get();
38 static void Shutdown(); 38 static void Shutdown();
39 39
40 // TODO(oshima): Fix the initialization process and replace this 40 // TODO(oshima): Fix the initialization process and replace this
41 // with EnvObserver::WindowInitialized 41 // with EnvObserver::WindowInitialized
42 virtual void OnRootWindowCreated(aura::Window* root_window) = 0; 42 virtual void OnRootWindowCreated(aura::Window* root_window) = 0;
43 43
44 // Add/remove power button observer. 44 // Add/remove power button observer.
45 virtual void AddPowerButtonObserver(PowerButtonObserver* observer) = 0; 45 virtual void AddPowerButtonObserver(PowerButtonObserver* observer) = 0;
46 virtual void RemovePowerButtonObserver(PowerButtonObserver* observer) = 0; 46 virtual void RemovePowerButtonObserver(PowerButtonObserver* observer) = 0;
47 47
48 virtual ui::EventTarget* GetTopmostEventTarget() = 0; 48 virtual ui::EventTarget* GetTopmostEventTarget() = 0;
49 virtual AcceleratorManager* GetAcceleratorManager() = 0; 49 virtual AcceleratorManager* GetAcceleratorManager() = 0;
50 50
51 virtual ~InputManager() {} 51 virtual ~InputManager() {}
52 }; 52 };
53 53
54 } // namespace athena 54 } // namespace athena
55 55
56 #endif // ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ 56 #endif // ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/input/power_button_controller.h ('k') | athena/main/athena_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698