Index: extensions/shell/browser/desktop_controller.h |
diff --git a/extensions/shell/browser/desktop_controller.h b/extensions/shell/browser/desktop_controller.h |
index 54f01062492e59225fd999c8bfc0608331f83f5f..14d541f9e3cf24239ab554bb983ad6f4a9632d7b 100644 |
--- a/extensions/shell/browser/desktop_controller.h |
+++ b/extensions/shell/browser/desktop_controller.h |
@@ -15,6 +15,7 @@ class BrowserContext; |
} |
namespace extensions { |
+class AppWindow; |
class Extension; |
class ShellAppWindow; |
@@ -35,11 +36,17 @@ class DesktopController { |
// Returns the WindowTreeHost created by this DesktopController. |
virtual aura::WindowTreeHost* GetHost() = 0; |
+ // Creates a new ShellAppWindow and adds it to the desktop. The desktop |
+ // maintains ownership of the window. The window must be closed before |
+ // |extension| is destroyed. |
+ virtual ShellAppWindow* CreateShellAppWindow(content::BrowserContext* context, |
+ const Extension* extension) = 0; |
+ |
// Creates a new app window and adds it to the desktop. The desktop maintains |
// ownership of the window. The window must be closed before |extension| is |
// destroyed. |
- virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context, |
- const Extension* extension) = 0; |
+ virtual AppWindow* CreateAppWindow(content::BrowserContext* context, |
+ const Extension* extension) = 0; |
// Attaches the window to our window hierarchy. |
virtual void AddAppWindow(aura::Window* window) = 0; |