| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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* CreateAppWindow(content::BrowserContext* context, |
| 72 const Extension* extension) OVERRIDE; | 72 const Extension* extension) OVERRIDE; |
| 73 virtual void AddAppWindow(aura::Window* window) OVERRIDE; |
| 73 virtual void CloseAppWindows() OVERRIDE; | 74 virtual void CloseAppWindows() OVERRIDE; |
| 74 | 75 |
| 75 // aura::client::WindowTreeClient overrides: | 76 // aura::client::WindowTreeClient overrides: |
| 76 virtual aura::Window* GetDefaultParent(aura::Window* context, | 77 virtual aura::Window* GetDefaultParent(aura::Window* context, |
| 77 aura::Window* window, | 78 aura::Window* window, |
| 78 const gfx::Rect& bounds) OVERRIDE; | 79 const gfx::Rect& bounds) OVERRIDE; |
| 79 | 80 |
| 80 #if defined(OS_CHROMEOS) | 81 #if defined(OS_CHROMEOS) |
| 81 // chromeos::PowerManagerClient::Observer overrides: | 82 // chromeos::PowerManagerClient::Observer overrides: |
| 82 virtual void PowerButtonEventReceived(bool down, | 83 virtual void PowerButtonEventReceived(bool down, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 133 |
| 133 // The desktop supports a single app window. | 134 // The desktop supports a single app window. |
| 134 scoped_ptr<ShellAppWindow> app_window_; | 135 scoped_ptr<ShellAppWindow> app_window_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); | 137 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace extensions | 140 } // namespace extensions |
| 140 | 141 |
| 141 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ | 142 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ |
| OLD | NEW |