OLD | NEW |
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_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "athena/athena_export.h" | 10 #include "athena/athena_export.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // API for other UI components, such as window manager, home card, to | 27 // API for other UI components, such as window manager, home card, to |
28 // create and manage their windows on the screen. | 28 // create and manage their windows on the screen. |
29 class ATHENA_EXPORT ScreenManager { | 29 class ATHENA_EXPORT ScreenManager { |
30 public: | 30 public: |
31 struct ContainerParams { | 31 struct ContainerParams { |
32 ContainerParams(const std::string& name); | 32 ContainerParams(const std::string& name); |
33 std::string name; | 33 std::string name; |
34 | 34 |
35 // True if the container can activate its child window. | 35 // True if the container can activate its child window. |
36 bool can_activate_children; | 36 bool can_activate_children; |
| 37 |
| 38 // True if the container will grab all of input events. |
| 39 bool grab_inputs; |
37 }; | 40 }; |
38 | 41 |
39 // Creates, returns and deletes the singleton object of the ScreenManager | 42 // Creates, returns and deletes the singleton object of the ScreenManager |
40 // implementation. | 43 // implementation. |
41 static ScreenManager* Create(aura::Window* root); | 44 static ScreenManager* Create(aura::Window* root); |
42 static ScreenManager* Get(); | 45 static ScreenManager* Get(); |
43 static void Shutdown(); | 46 static void Shutdown(); |
44 | 47 |
45 virtual ~ScreenManager() {} | 48 virtual ~ScreenManager() {} |
46 | 49 |
(...skipping 12 matching lines...) Expand all Loading... |
59 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 62 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
60 | 63 |
61 // Create a focus rules. | 64 // Create a focus rules. |
62 // TODO(oshima): Make this virtual function. | 65 // TODO(oshima): Make this virtual function. |
63 static wm::FocusRules* CreateFocusRules(); | 66 static wm::FocusRules* CreateFocusRules(); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace athena | 69 } // namespace athena |
67 | 70 |
68 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 71 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |