Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: apps/shell/browser/shell_app_window_controller.h

Issue 335003003: Introduces AppActivity and handler of chrome.shell API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « apps/shell/browser/default_shell_browser_main_delegate.cc ('k') | apps/shell/browser/shell_desktop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698