Chromium Code Reviews| 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 EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 6 #define EXTENSIONS_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 public chromeos::PowerManagerClient::Observer, | 61 public chromeos::PowerManagerClient::Observer, |
| 62 public ui::DisplayConfigurator::Observer, | 62 public ui::DisplayConfigurator::Observer, |
| 63 #endif | 63 #endif |
| 64 public aura::WindowTreeHostObserver { | 64 public aura::WindowTreeHostObserver { |
| 65 public: | 65 public: |
| 66 ShellDesktopController(); | 66 ShellDesktopController(); |
| 67 virtual ~ShellDesktopController(); | 67 virtual ~ShellDesktopController(); |
| 68 | 68 |
| 69 // DesktopController: | 69 // DesktopController: |
| 70 virtual aura::WindowTreeHost* GetHost() OVERRIDE; | 70 virtual aura::WindowTreeHost* GetHost() OVERRIDE; |
| 71 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context, | 71 virtual ShellAppWindow* CreateShellAppWindow( |
| 72 const Extension* extension) OVERRIDE; | 72 content::BrowserContext* context, |
| 73 const Extension* extension) OVERRIDE; | |
| 74 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, | |
| 75 const Extension* extension) OVERRIDE; | |
| 73 virtual void AddAppWindow(aura::Window* window) OVERRIDE; | 76 virtual void AddAppWindow(aura::Window* window) OVERRIDE; |
| 74 virtual void CloseAppWindows() OVERRIDE; | 77 virtual void CloseAppWindows() OVERRIDE; |
| 75 | 78 |
| 76 // aura::client::WindowTreeClient overrides: | 79 // aura::client::WindowTreeClient overrides: |
| 77 virtual aura::Window* GetDefaultParent(aura::Window* context, | 80 virtual aura::Window* GetDefaultParent(aura::Window* context, |
| 78 aura::Window* window, | 81 aura::Window* window, |
| 79 const gfx::Rect& bounds) OVERRIDE; | 82 const gfx::Rect& bounds) OVERRIDE; |
| 80 | 83 |
| 81 #if defined(OS_CHROMEOS) | 84 #if defined(OS_CHROMEOS) |
| 82 // chromeos::PowerManagerClient::Observer overrides: | 85 // chromeos::PowerManagerClient::Observer overrides: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 scoped_ptr<aura::client::FocusClient> focus_client_; | 128 scoped_ptr<aura::client::FocusClient> focus_client_; |
| 126 | 129 |
| 127 scoped_ptr<wm::CursorManager> cursor_manager_; | 130 scoped_ptr<wm::CursorManager> cursor_manager_; |
| 128 | 131 |
| 129 scoped_ptr<wm::UserActivityDetector> user_activity_detector_; | 132 scoped_ptr<wm::UserActivityDetector> user_activity_detector_; |
| 130 #if defined(OS_CHROMEOS) | 133 #if defined(OS_CHROMEOS) |
| 131 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; | 134 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; |
| 132 #endif | 135 #endif |
| 133 | 136 |
| 134 // The desktop supports a single app window. | 137 // The desktop supports a single app window. |
| 135 scoped_ptr<ShellAppWindow> app_window_; | 138 scoped_ptr<ShellAppWindow> shell_app_window_; |
| 139 AppWindow* app_window_; | |
|
James Cook
2014/09/08 18:14:31
nit: Maybe comment that this is not owned?
James Cook
2014/09/09 15:32:23
Or comment that the memory is cleaned up by the Na
hashimoto
2014/09/09 16:32:44
Added comments here and in ShellDesktopController:
| |
| 136 | 140 |
| 137 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); | 141 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); |
| 138 }; | 142 }; |
| 139 | 143 |
| 140 } // namespace extensions | 144 } // namespace extensions |
| 141 | 145 |
| 142 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 146 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
| OLD | NEW |