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 10 matching lines...) Expand all Loading... |
80 | 80 |
81 // Owned by the BrowserContextKeyedService system. | 81 // Owned by the BrowserContextKeyedService system. |
82 extensions::ShellExtensionSystem* extension_system_; | 82 extensions::ShellExtensionSystem* extension_system_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 84 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace apps | 87 } // namespace apps |
88 | 88 |
89 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 89 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |