| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 class BrowserContext; | 9 class BrowserContext; |
| 10 } | 10 } |
| 11 | 11 |
| 12 namespace apps { | 12 namespace extensions { |
| 13 | 13 |
| 14 class ShellAppWindow; | 14 class ShellAppWindow; |
| 15 | 15 |
| 16 class ShellAppWindowController { | 16 class ShellAppWindowController { |
| 17 public: | 17 public: |
| 18 virtual ~ShellAppWindowController() {} | 18 virtual ~ShellAppWindowController() {} |
| 19 | 19 |
| 20 // Creates a new app window and adds it to the desktop. This class should | 20 // Creates a new app window and adds it to the desktop. This class should |
| 21 // maintain the ownership of the window. | 21 // maintain the ownership of the window. |
| 22 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context) = 0; | 22 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context) = 0; |
| 23 | 23 |
| 24 // Closes and destroys the app windows. | 24 // Closes and destroys the app windows. |
| 25 virtual void CloseAppWindows() = 0; | 25 virtual void CloseAppWindows() = 0; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace apps | 28 } // namespace extensions |
| 29 | 29 |
| 30 #endif // APPS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ | 30 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ |
| OLD | NEW |