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 17 matching lines...) Expand all Loading... |
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, int z_order_priority); | 32 ContainerParams(const std::string& name, int z_order_priority); |
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 | 37 |
| 38 // True if the container will grab all of input events. |
| 39 bool grab_inputs; |
| 40 |
38 // Defines the z_order priority of the container. | 41 // Defines the z_order priority of the container. |
39 int z_order_priority; | 42 int z_order_priority; |
40 }; | 43 }; |
41 | 44 |
42 // Creates, returns and deletes the singleton object of the ScreenManager | 45 // Creates, returns and deletes the singleton object of the ScreenManager |
43 // implementation. | 46 // implementation. |
44 static ScreenManager* Create(aura::Window* root); | 47 static ScreenManager* Create(aura::Window* root); |
45 static ScreenManager* Get(); | 48 static ScreenManager* Get(); |
46 static void Shutdown(); | 49 static void Shutdown(); |
47 | 50 |
(...skipping 14 matching lines...) Expand all Loading... |
62 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 65 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
63 | 66 |
64 // Create a focus rules. | 67 // Create a focus rules. |
65 // TODO(oshima): Make this virtual function. | 68 // TODO(oshima): Make this virtual function. |
66 static wm::FocusRules* CreateFocusRules(); | 69 static wm::FocusRules* CreateFocusRules(); |
67 }; | 70 }; |
68 | 71 |
69 } // namespace athena | 72 } // namespace athena |
70 | 73 |
71 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 74 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |