Index: apps/shell/browser/shell_app_window_controller.h |
diff --git a/apps/shell/browser/shell_app_window_controller.h b/apps/shell/browser/shell_app_window_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13dd98209793982adf20b48ea1f40316448cb917 |
--- /dev/null |
+++ b/apps/shell/browser/shell_app_window_controller.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |
+#define APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace apps { |
+ |
+class ShellAppWindow; |
+ |
+class ShellAppWindowController { |
+ public: |
+ virtual ~ShellAppWindowController() {} |
+ |
+ // Creates a new app window and adds it to the desktop. This class should |
+ // maintain the ownership of the window. |
+ virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context) = 0; |
+ |
+ // Closes and destroys the app windows. |
+ virtual void CloseAppWindows() = 0; |
+}; |
+ |
+} // namespace apps |
+ |
+#endif // APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |