Chromium Code Reviews| 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..0203fe884cfabb98a046630afd298d6d7d80a132 |
| --- /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. |
|
James Cook
2014/06/16 16:12:30
Nice that you explained it handles a single window
|
| +class DefaultShellAppWindowController : public ShellAppWindowController { |
| + public: |
| + DefaultShellAppWindowController( |
|
James Cook
2014/06/16 16:12:30
explicit
Jun Mukai
2014/06/16 17:46:52
Done.
|
| + ShellDesktopController* shell_desktop_controller); |
| + virtual ~DefaultShellAppWindowController(); |
| + |
| + // Overridden from ShellAppWindowController: |
|
James Cook
2014/06/16 16:12:30
nit: The extensions code prefers "ShellAppWindowCo
Jun Mukai
2014/06/16 17:46:52
Done.
|
| + 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_ |