OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ | |
6 #define ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ | |
7 | |
8 #include "athena/athena_export.h" | |
9 | |
10 namespace aura { | |
11 class Window; | |
12 } | |
13 | |
14 namespace ui { | |
15 class Accelerator; | |
sadrul
2014/06/05 19:24:33
This doesn't look necessary here.
oshima
2014/06/05 20:36:40
Done.
| |
16 class EventTarget; | |
17 } | |
18 | |
19 namespace athena { | |
20 class AcceleratorManager; | |
21 | |
22 class ATHENA_EXPORT InputManager { | |
23 public: | |
24 // Creates and deletes the singleton object of the HomeCard | |
sadrul
2014/06/05 19:24:33
InputManager
oshima
2014/06/05 20:36:40
Done.
| |
25 // implementation. | |
26 static InputManager* Create(); | |
27 static InputManager* Get(); | |
28 static void Shutdown(); | |
29 | |
30 // TODO(oshima): Fix the initialization process and replace this | |
31 // with EnvObserver::WindowInitialized | |
32 virtual void OnRootWindowCreated(aura::Window* root_window) = 0; | |
33 | |
34 virtual ui::EventTarget* GetToplevelEventTarget() = 0; | |
35 virtual AcceleratorManager* GetAcceleratorManager() = 0; | |
36 | |
37 virtual ~InputManager() {} | |
38 }; | |
39 | |
40 } // namespace athena | |
41 | |
42 #endif // ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_ | |
OLD | NEW |