| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_BROWSER_MAIN_PARTS_H_ | 5 #ifndef APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| 6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/public/browser/browser_main_parts.h" | 11 #include "content/public/browser/browser_main_parts.h" |
| 12 #include "ui/aura/root_window_observer.h" | 12 #include "ui/aura/root_window_observer.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class TestScreen; | 15 class TestScreen; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace base { | |
| 19 class FilePath; | |
| 20 } | |
| 21 | |
| 22 namespace content { | 18 namespace content { |
| 23 class ShellBrowserContext; | 19 class ShellBrowserContext; |
| 24 struct MainFunctionParams; | 20 struct MainFunctionParams; |
| 25 } | 21 } |
| 26 | 22 |
| 27 namespace extensions { | 23 namespace extensions { |
| 28 class ShellExtensionSystem; | 24 class ShellExtensionSystem; |
| 29 } | 25 } |
| 30 | 26 |
| 31 namespace wm { | 27 namespace wm { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 private: | 62 private: |
| 67 // Creates the window that hosts the apps. | 63 // Creates the window that hosts the apps. |
| 68 void CreateRootWindow(); | 64 void CreateRootWindow(); |
| 69 | 65 |
| 70 // Closes and destroys the root window hosting the app. | 66 // Closes and destroys the root window hosting the app. |
| 71 void DestroyRootWindow(); | 67 void DestroyRootWindow(); |
| 72 | 68 |
| 73 // Creates and initializes the ExtensionSystem. | 69 // Creates and initializes the ExtensionSystem. |
| 74 void CreateExtensionSystem(); | 70 void CreateExtensionSystem(); |
| 75 | 71 |
| 76 // Loads an unpacked application from a directory and attempts to launch it. | |
| 77 // Returns true on success. | |
| 78 bool LoadAndLaunchApp(const base::FilePath& app_dir); | |
| 79 | |
| 80 scoped_ptr<ShellBrowserContext> browser_context_; | 72 scoped_ptr<ShellBrowserContext> browser_context_; |
| 81 scoped_ptr<ShellExtensionsClient> extensions_client_; | 73 scoped_ptr<ShellExtensionsClient> extensions_client_; |
| 82 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; | 74 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; |
| 83 | 75 |
| 84 // Enable a minimal set of views::corewm to be initialized. | 76 // Enable a minimal set of views::corewm to be initialized. |
| 85 scoped_ptr<wm::WMTestHelper> wm_test_helper_; | 77 scoped_ptr<wm::WMTestHelper> wm_test_helper_; |
| 86 | 78 |
| 87 scoped_ptr<aura::TestScreen> test_screen_; | 79 scoped_ptr<aura::TestScreen> test_screen_; |
| 88 | 80 |
| 89 // Owned by the BrowserContextKeyedService system. | 81 // Owned by the BrowserContextKeyedService system. |
| 90 extensions::ShellExtensionSystem* extension_system_; | 82 extensions::ShellExtensionSystem* extension_system_; |
| 91 | 83 |
| 92 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 84 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 93 }; | 85 }; |
| 94 | 86 |
| 95 } // namespace apps | 87 } // namespace apps |
| 96 | 88 |
| 97 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 89 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |