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 APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
6 #define APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 6 #define APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
37 namespace ui { | 37 namespace ui { |
38 class UserActivityPowerManagerNotifier; | 38 class UserActivityPowerManagerNotifier; |
39 } | 39 } |
40 #endif | 40 #endif |
41 | 41 |
42 namespace wm { | 42 namespace wm { |
43 class CompoundEventFilter; | 43 class CompoundEventFilter; |
44 class CursorManager; | 44 class CursorManager; |
| 45 class FocusRules; |
45 class InputMethodEventFilter; | 46 class InputMethodEventFilter; |
46 class UserActivityDetector; | 47 class UserActivityDetector; |
47 } | 48 } |
48 | 49 |
49 namespace apps { | 50 namespace apps { |
50 | 51 |
51 class ShellAppWindow; | 52 class ShellAppWindow; |
52 class ShellAppWindowController; | 53 class ShellAppWindowController; |
53 | 54 |
54 // Handles desktop-related tasks for app_shell. | 55 // Handles desktop-related tasks for app_shell. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 #endif | 97 #endif |
97 | 98 |
98 // aura::WindowTreeHostObserver overrides: | 99 // aura::WindowTreeHostObserver overrides: |
99 virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) OVERRIDE; | 100 virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) OVERRIDE; |
100 | 101 |
101 protected: | 102 protected: |
102 // Creates and sets the aura clients and window manager stuff. Subclass may | 103 // Creates and sets the aura clients and window manager stuff. Subclass may |
103 // initialize different sets of the clients. | 104 // initialize different sets of the clients. |
104 virtual void InitWindowManager(); | 105 virtual void InitWindowManager(); |
105 | 106 |
| 107 // Creates a focus rule that is to be used in the InitWindowManager. |
| 108 virtual wm::FocusRules* CreateFocusRules(); |
| 109 |
106 private: | 110 private: |
107 // Closes and destroys the root window hosting the app. | 111 // Closes and destroys the root window hosting the app. |
108 void DestroyRootWindow(); | 112 void DestroyRootWindow(); |
109 | 113 |
110 // Returns the dimensions (in pixels) of the primary display, or an empty size | 114 // Returns the dimensions (in pixels) of the primary display, or an empty size |
111 // if the dimensions can't be determined or no display is connected. | 115 // if the dimensions can't be determined or no display is connected. |
112 gfx::Size GetPrimaryDisplaySize(); | 116 gfx::Size GetPrimaryDisplaySize(); |
113 | 117 |
114 #if defined(OS_CHROMEOS) | 118 #if defined(OS_CHROMEOS) |
115 scoped_ptr<ui::DisplayConfigurator> display_configurator_; | 119 scoped_ptr<ui::DisplayConfigurator> display_configurator_; |
(...skipping 20 matching lines...) Expand all Loading... |
136 | 140 |
137 // The desktop supports a single app window. | 141 // The desktop supports a single app window. |
138 scoped_ptr<ShellAppWindowController> app_window_controller_; | 142 scoped_ptr<ShellAppWindowController> app_window_controller_; |
139 | 143 |
140 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); | 144 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); |
141 }; | 145 }; |
142 | 146 |
143 } // namespace apps | 147 } // namespace apps |
144 | 148 |
145 #endif // APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 149 #endif // APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
OLD | NEW |