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_DESKTOP_CONTROLLER_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ |
| 7 | 7 |
| 8 namespace aura { | 8 namespace aura { |
| 9 class Window; | 9 class Window; |
| 10 class WindowTreeHost; | 10 class WindowTreeHost; |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 // Creates a new app window and adds it to the desktop. The desktop maintains | 40 // Creates a new app window and adds it to the desktop. The desktop maintains |
| 41 // ownership of the window. The window must be closed before |extension| is | 41 // ownership of the window. The window must be closed before |extension| is |
| 42 // destroyed. | 42 // destroyed. |
| 43 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, | 43 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, |
| 44 const Extension* extension) = 0; | 44 const Extension* extension) = 0; |
| 45 | 45 |
| 46 // Attaches the window to our window hierarchy. | 46 // Attaches the window to our window hierarchy. |
| 47 virtual void AddAppWindow(aura::Window* window) = 0; | 47 virtual void AddAppWindow(aura::Window* window) = 0; |
| 48 | 48 |
| 49 // Removes the window from the desktop. | |
| 50 virtual void RemoveAppWindow(AppWindow* window) = 0; | |
|
James Cook
2014/10/23 21:29:52
You'll need a stub implementation of this for Athe
lfg
2014/10/23 22:04:05
Done.
| |
| 51 | |
| 49 // Closes and destroys the app windows. | 52 // Closes and destroys the app windows. |
| 50 virtual void CloseAppWindows() = 0; | 53 virtual void CloseAppWindows() = 0; |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 } // namespace extensions | 56 } // namespace extensions |
| 54 | 57 |
| 55 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ | 58 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ |
| OLD | NEW |