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

Side by Side Diff: content/shell/shell_content_browser_client.h

Issue 8302016: Make GTK and Aura parts orthogonal to OS parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/public/browser/content_browser_client.h" 13 #include "content/public/browser/content_browser_client.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 #include "content/browser/tab_contents/tab_contents_view_win_delegate.h" 16 #include "content/browser/tab_contents/tab_contents_view_win_delegate.h"
17 #endif 17 #endif
18 18
19 namespace content { 19 namespace content {
20 20
21 class ShellBrowserMainParts; 21 class ShellBrowserMainParts;
22 22
23 class ShellContentBrowserClient : public ContentBrowserClient 23 class ShellContentBrowserClient : public ContentBrowserClient
24 #if defined(OS_WIN) 24 #if defined(OS_WIN)
25 , public TabContentsViewWinDelegate 25 , public TabContentsViewWinDelegate
26 #endif 26 #endif
27 { 27 {
28 public: 28 public:
29 ShellContentBrowserClient(); 29 ShellContentBrowserClient();
30 virtual ~ShellContentBrowserClient(); 30 virtual ~ShellContentBrowserClient();
31 31
32 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { 32 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) {
33 shell_browser_main_parts_ = parts; 33 shell_browser_main_parts_ = parts;
34 } 34 }
35 35
36 virtual BrowserMainParts* CreateBrowserMainParts( 36 virtual void CreateBrowserMainParts(
37 const MainFunctionParams& parameters) OVERRIDE; 37 const MainFunctionParams& parameters,
38 std::vector<BrowserMainParts*>* parts_list) OVERRIDE;
38 virtual RenderWidgetHostView* CreateViewForWidget( 39 virtual RenderWidgetHostView* CreateViewForWidget(
39 RenderWidgetHost* widget) OVERRIDE; 40 RenderWidgetHost* widget) OVERRIDE;
40 virtual TabContentsView* CreateTabContentsView( 41 virtual TabContentsView* CreateTabContentsView(
41 TabContents* tab_contents) OVERRIDE; 42 TabContents* tab_contents) OVERRIDE;
42 virtual void RenderViewHostCreated( 43 virtual void RenderViewHostCreated(
43 RenderViewHost* render_view_host) OVERRIDE; 44 RenderViewHost* render_view_host) OVERRIDE;
44 virtual void BrowserRenderProcessHostCreated( 45 virtual void BrowserRenderProcessHostCreated(
45 BrowserRenderProcessHost* host) OVERRIDE; 46 BrowserRenderProcessHost* host) OVERRIDE;
46 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; 47 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE;
47 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; 48 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; 168 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
168 #endif 169 #endif
169 170
170 private: 171 private:
171 ShellBrowserMainParts* shell_browser_main_parts_; 172 ShellBrowserMainParts* shell_browser_main_parts_;
172 }; 173 };
173 174
174 } // namespace content 175 } // namespace content
175 176
176 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 177 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698