Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: apps/shell/browser/shell_browser_main_parts.h

Issue 145723011: Add a specialized apps::NativeAppWindow for app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 5 #ifndef APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
6 #define APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 6 #define APPS_SHELL_BROWSER_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 21 matching lines...) Expand all
32 namespace net { 32 namespace net {
33 class NetLog; 33 class NetLog;
34 } 34 }
35 35
36 namespace wm { 36 namespace wm {
37 class WMTestHelper; 37 class WMTestHelper;
38 } 38 }
39 39
40 namespace apps { 40 namespace apps {
41 41
42 class ShellAppsClient;
42 class ShellBrowserContext; 43 class ShellBrowserContext;
43 class ShellExtensionsClient; 44 class ShellExtensionsClient;
44 45
45 // Handles initialization of AppShell. 46 // Handles initialization of AppShell.
46 class ShellBrowserMainParts : public content::BrowserMainParts, 47 class ShellBrowserMainParts : public content::BrowserMainParts,
47 public aura::RootWindowObserver { 48 public aura::RootWindowObserver {
48 public: 49 public:
49 explicit ShellBrowserMainParts( 50 explicit ShellBrowserMainParts(
50 const content::MainFunctionParams& parameters); 51 const content::MainFunctionParams& parameters);
51 virtual ~ShellBrowserMainParts(); 52 virtual ~ShellBrowserMainParts();
(...skipping 30 matching lines...) Expand all
82 void CreateViewsDelegate(); 83 void CreateViewsDelegate();
83 void DestroyViewsDelegate(); 84 void DestroyViewsDelegate();
84 85
85 // Creates and initializes the ExtensionSystem. 86 // Creates and initializes the ExtensionSystem.
86 void CreateExtensionSystem(); 87 void CreateExtensionSystem();
87 88
88 scoped_ptr<ShellBrowserContext> browser_context_; 89 scoped_ptr<ShellBrowserContext> browser_context_;
89 scoped_ptr<ShellExtensionsClient> extensions_client_; 90 scoped_ptr<ShellExtensionsClient> extensions_client_;
90 scoped_ptr<extensions::ShellExtensionsBrowserClient> 91 scoped_ptr<extensions::ShellExtensionsBrowserClient>
91 extensions_browser_client_; 92 extensions_browser_client_;
93 scoped_ptr<ShellAppsClient> apps_client_;
92 scoped_ptr<net::NetLog> net_log_; 94 scoped_ptr<net::NetLog> net_log_;
93 95
94 // Enable a minimal set of views::corewm to be initialized. 96 // Enable a minimal set of views::corewm to be initialized.
95 scoped_ptr<wm::WMTestHelper> wm_test_helper_; 97 scoped_ptr<wm::WMTestHelper> wm_test_helper_;
96 98
97 scoped_ptr<aura::TestScreen> test_screen_; 99 scoped_ptr<aura::TestScreen> test_screen_;
98 100
99 scoped_ptr<views::Widget> webview_window_; 101 scoped_ptr<views::Widget> webview_window_;
100 102
101 // Owned by the BrowserContextKeyedService system. 103 // Owned by the BrowserContextKeyedService system.
102 extensions::ShellExtensionSystem* extension_system_; 104 extensions::ShellExtensionSystem* extension_system_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 106 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
105 }; 107 };
106 108
107 } // namespace apps 109 } // namespace apps
108 110
109 #endif // APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 111 #endif // APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698