summaryrefslogtreecommitdiffstats
path: root/content/public/browser/render_view_host.h
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 15:02:11 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 15:02:11 +0000
commiteaabba206ae14905ef3a922e7b839cab285dd940 (patch)
tree13f52a325e90d2d5522ddac3e558a54eea026d06 /content/public/browser/render_view_host.h
parent15b43fba084a9880c76736167c782dea8df24a78 (diff)
downloadchromium_src-eaabba206ae14905ef3a922e7b839cab285dd940.zip
chromium_src-eaabba206ae14905ef3a922e7b839cab285dd940.tar.gz
chromium_src-eaabba206ae14905ef3a922e7b839cab285dd940.tar.bz2
Move Render(View|Widget)Host and associated classes to content namespace.
TBR=jam@chromium.org BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9600036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/render_view_host.h')
-rw-r--r--content/public/browser/render_view_host.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h
index df7f6ad..ea98983 100644
--- a/content/public/browser/render_view_host.h
+++ b/content/public/browser/render_view_host.h
@@ -18,13 +18,6 @@ class GURL;
struct WebDropData;
struct WebPreferences;
-namespace content {
-class RenderViewHostDelegate;
-class SessionStorageNamespace;
-class SiteInstance;
-struct CustomContextMenuContext;
-}
-
namespace gfx {
class Point;
}
@@ -35,6 +28,13 @@ struct WebMediaPlayerAction;
struct WebPluginAction;
}
+namespace content {
+
+class RenderViewHostDelegate;
+class SessionStorageNamespace;
+class SiteInstance;
+struct CustomContextMenuContext;
+
// A RenderViewHost is responsible for creating and talking to a RenderView
// object in a child process. It exposes a high level API to users, for things
// like loading pages, adjusting the display and other browser functionality,
@@ -46,8 +46,6 @@ struct WebPluginAction;
// The intent of this interface is to provide a view-agnostic communication
// conduit with a renderer. This is so we can build HTML views not only as
// TabContents (see TabContents for an example) but also as views, etc.
-//
-// TODO(joi): Move to content namespace.
class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
public:
// Returns the RenderViewHost given its ID and the ID of its render process.
@@ -142,7 +140,7 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Executes custom context menu action that was provided from WebKit.
virtual void ExecuteCustomContextMenuCommand(
- int action, const content::CustomContextMenuContext& context) = 0;
+ int action, const CustomContextMenuContext& context) = 0;
// Tells the renderer to perform the given action on the media player
// located at the given point.
@@ -177,7 +175,7 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Notifies the renderer that the user has closed the FindInPage window
// (and what action to take regarding the selection).
- virtual void StopFinding(content::StopFindAction action) = 0;
+ virtual void StopFinding(StopFindAction action) = 0;
// Causes the renderer to invoke the onbeforeunload event handler. The
// result will be returned via ViewMsg_ShouldClose. See also ClosePage and
@@ -195,15 +193,15 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
virtual void FilesSelectedInChooser(const std::vector<FilePath>& files,
int permissions) = 0;
- virtual content::RenderViewHostDelegate* GetDelegate() const = 0;
+ virtual RenderViewHostDelegate* GetDelegate() const = 0;
// Returns a bitwise OR of bindings types that have been enabled for this
// RenderView. See BindingsPolicy for details.
virtual int GetEnabledBindings() const = 0;
- virtual content::SessionStorageNamespace* GetSessionStorageNamespace() = 0;
+ virtual SessionStorageNamespace* GetSessionStorageNamespace() = 0;
- virtual content::SiteInstance* GetSiteInstance() const = 0;
+ virtual SiteInstance* GetSiteInstance() const = 0;
// Requests the renderer to evaluate an xpath to a frame and insert css
// into that frame's document.
@@ -216,7 +214,7 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Let the renderer know that the menu has been closed.
virtual void NotifyContextMenuClosed(
- const content::CustomContextMenuContext& context) = 0;
+ const CustomContextMenuContext& context) = 0;
// Notification that a move or resize renderer's containing window has
// started.
@@ -237,7 +235,7 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
virtual void SetZoomLevel(double level) = 0;
// Changes the zoom level for the current main frame.
- virtual void Zoom(content::PageZoom zoom) = 0;
+ virtual void Zoom(PageZoom zoom) = 0;
// Send the renderer process the current preferences supplied by the
// RenderViewHostDelegate.
@@ -249,5 +247,6 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0;
};
+} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_