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

Side by Side Diff: content/public/browser/web_contents.h

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/browser/page_navigator.h" 13 #include "content/public/browser/page_navigator.h"
14 #include "content/public/browser/save_page_type.h" 14 #include "content/public/browser/save_page_type.h"
15 #include "content/public/browser/web_ui.h" 15 #include "content/public/browser/web_ui.h"
16 #include "content/public/common/view_type.h" 16 #include "content/public/common/view_type.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "webkit/glue/window_open_disposition.h" 18 #include "webkit/glue/window_open_disposition.h"
19 19
20 class RenderViewHost; 20 class RenderViewHost;
21 class RenderWidgetHostView;
22 class SessionStorageNamespace; 21 class SessionStorageNamespace;
23 22
24 namespace base { 23 namespace base {
25 class PropertyBag; 24 class PropertyBag;
26 class TimeTicks; 25 class TimeTicks;
27 } 26 }
28 27
29 namespace gfx { 28 namespace gfx {
30 class Rect; 29 class Rect;
31 class Size; 30 class Size;
32 } 31 }
33 32
34 namespace net { 33 namespace net {
35 struct LoadStateWithParam; 34 struct LoadStateWithParam;
36 } 35 }
37 36
38 namespace content { 37 namespace content {
39 38
40 class BrowserContext; 39 class BrowserContext;
41 class InterstitialPage; 40 class InterstitialPage;
42 class NavigationController; 41 class NavigationController;
43 class RenderProcessHost; 42 class RenderProcessHost;
43 class RenderWidgetHostView;
44 class WebContentsDelegate; 44 class WebContentsDelegate;
45 struct RendererPreferences; 45 struct RendererPreferences;
46 class SiteInstance; 46 class SiteInstance;
47 // TODO(jam): of course we will have to rename WebContentsView etc to use 47 // TODO(jam): of course we will have to rename WebContentsView etc to use
48 // WebContents. 48 // WebContents.
49 class WebContentsView; 49 class WebContentsView;
50 50
51 // Describes what goes in the main content area of a tab. 51 // Describes what goes in the main content area of a tab.
52 class WebContents : public PageNavigator { 52 class WebContents : public PageNavigator {
53 public: 53 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Return the currently active RenderProcessHost and RenderViewHost. Each of 97 // Return the currently active RenderProcessHost and RenderViewHost. Each of
98 // these may change over time. 98 // these may change over time.
99 virtual RenderProcessHost* GetRenderProcessHost() const = 0; 99 virtual RenderProcessHost* GetRenderProcessHost() const = 0;
100 100
101 // Gets the current RenderViewHost for this tab. 101 // Gets the current RenderViewHost for this tab.
102 virtual RenderViewHost* GetRenderViewHost() const = 0; 102 virtual RenderViewHost* GetRenderViewHost() const = 0;
103 103
104 // Returns the currently active RenderWidgetHostView. This may change over 104 // Returns the currently active RenderWidgetHostView. This may change over
105 // time and can be NULL (during setup and teardown). 105 // time and can be NULL (during setup and teardown).
106 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; 106 virtual content::RenderWidgetHostView* GetRenderWidgetHostView() const = 0;
107 107
108 // The WebContentsView will never change and is guaranteed non-NULL. 108 // The WebContentsView will never change and is guaranteed non-NULL.
109 virtual WebContentsView* GetView() const = 0; 109 virtual WebContentsView* GetView() const = 0;
110 110
111 // Create a WebUI page for the given url. In most cases, this doesn't need to 111 // Create a WebUI page for the given url. In most cases, this doesn't need to
112 // be called by embedders since content will create its own WebUI objects as 112 // be called by embedders since content will create its own WebUI objects as
113 // necessary. However if the embedder wants to create its own WebUI object and 113 // necessary. However if the embedder wants to create its own WebUI object and
114 // keep track of it manually, it can use this. 114 // keep track of it manually, it can use this.
115 virtual WebUI* CreateWebUI(const GURL& url) = 0; 115 virtual WebUI* CreateWebUI(const GURL& url) = 0;
116 116
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // to see what it should do. 357 // to see what it should do.
358 virtual bool FocusLocationBarByDefault() = 0; 358 virtual bool FocusLocationBarByDefault() = 0;
359 359
360 // Focuses the location bar. 360 // Focuses the location bar.
361 virtual void SetFocusToLocationBar(bool select_all) = 0; 361 virtual void SetFocusToLocationBar(bool select_all) = 0;
362 }; 362 };
363 363
364 } // namespace content 364 } // namespace content
365 365
366 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 366 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/public/browser/web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698