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

Unified Diff: apps/shell/browser/default_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
« no previous file with comments | « apps/shell/app_shell.gyp ('k') | apps/shell/browser/default_shell_app_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/default_shell_app_window_controller.h
diff --git a/apps/shell/browser/default_shell_app_window_controller.h b/apps/shell/browser/default_shell_app_window_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..36dccd834dd439aa28302098a62facb451aca924
--- /dev/null
+++ b/apps/shell/browser/default_shell_app_window_controller.h
@@ -0,0 +1,40 @@
+// 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_DEFAULT_SHELL_APP_WINDOW_CONTROLLER_H_
+#define APPS_SHELL_BROWSER_DEFAULT_SHELL_APP_WINDOW_CONTROLLER_H_
+
+#include "apps/shell/browser/shell_app_window_controller.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace apps {
+
+class ShellDesktopController;
+
+// The default shell app window controller for app_shell. It manages only one
+// app_window.
+class DefaultShellAppWindowController : public ShellAppWindowController {
+ public:
+ explicit DefaultShellAppWindowController(
+ ShellDesktopController* shell_desktop_controller);
+ virtual ~DefaultShellAppWindowController();
+
+ // ShellAppWindowController implementation.
+ virtual ShellAppWindow* CreateAppWindow(
+ content::BrowserContext* context) OVERRIDE;
+ virtual void CloseAppWindows() OVERRIDE;
+
+ private:
+ ShellDesktopController* shell_desktop_controller_; // Not owned
+
+ // The desktop supports a single app window.
+ scoped_ptr<ShellAppWindow> app_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(DefaultShellAppWindowController);
+};
+
+} // namespace apps
+
+#endif // APPS_SHELL_BROWSER_DEFAULT_SHELL_APP_WINDOW_CONTROLLER_H_
« no previous file with comments | « apps/shell/app_shell.gyp ('k') | apps/shell/browser/default_shell_app_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698