| 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" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // BrowserMainParts overrides. | 49 // BrowserMainParts overrides. |
| 50 virtual void PreEarlyInitialization() OVERRIDE; | 50 virtual void PreEarlyInitialization() OVERRIDE; |
| 51 virtual void PreMainMessageLoopStart() OVERRIDE; | 51 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 52 virtual void PostMainMessageLoopStart() OVERRIDE; | 52 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 53 virtual int PreCreateThreads() OVERRIDE; | 53 virtual int PreCreateThreads() OVERRIDE; |
| 54 virtual void PreMainMessageLoopRun() OVERRIDE; | 54 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 55 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 55 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 56 virtual void PostMainMessageLoopRun() OVERRIDE; | 56 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 57 | 57 |
| 58 // aura::RootWindowObserver overrides: | 58 // aura::RootWindowObserver overrides: |
| 59 virtual void OnRootWindowHostCloseRequested(const aura::RootWindow* root) | 59 virtual void OnWindowTreeHostCloseRequested(const aura::RootWindow* root) |
| 60 OVERRIDE; | 60 OVERRIDE; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // Creates the window that hosts the apps. | 63 // Creates the window that hosts the apps. |
| 64 void CreateRootWindow(); | 64 void CreateRootWindow(); |
| 65 | 65 |
| 66 // Closes and destroys the root window hosting the app. | 66 // Closes and destroys the root window hosting the app. |
| 67 void DestroyRootWindow(); | 67 void DestroyRootWindow(); |
| 68 | 68 |
| 69 // Creates and initializes the ExtensionSystem. | 69 // Creates and initializes the ExtensionSystem. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 82 | 82 |
| 83 // Owned by the BrowserContextKeyedService system. | 83 // Owned by the BrowserContextKeyedService system. |
| 84 extensions::ShellExtensionSystem* extension_system_; | 84 extensions::ShellExtensionSystem* extension_system_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 86 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace apps | 89 } // namespace apps |
| 90 | 90 |
| 91 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 91 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |