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

Side by Side Diff: content/public/renderer/render_view.h

Issue 11316244: [content shell] add support for a testRunner.setXSSAuditorEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years 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/content_shell.gypi ('k') | content/renderer/render_view_impl.h » ('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) 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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // redirects, like the page cycler uses (document.location.href="foo") do not 61 // redirects, like the page cycler uses (document.location.href="foo") do not
62 // count as regular navigations and do not increment the page id. 62 // count as regular navigations and do not increment the page id.
63 virtual int GetPageId() const = 0; 63 virtual int GetPageId() const = 0;
64 64
65 // Returns the size of the view. 65 // Returns the size of the view.
66 virtual gfx::Size GetSize() const = 0; 66 virtual gfx::Size GetSize() const = 0;
67 67
68 // Gets WebKit related preferences associated with this view. 68 // Gets WebKit related preferences associated with this view.
69 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; 69 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0;
70 70
71 // Overrides the WebKit related preferences associated with this view. Note
72 // that the browser process may update the preferences at any time.
73 virtual void SetWebkitPreferences(
74 const webkit_glue::WebPreferences& preferences) = 0;
75
71 // Returns the associated WebView. May return NULL when the view is closing. 76 // Returns the associated WebView. May return NULL when the view is closing.
72 virtual WebKit::WebView* GetWebView() = 0; 77 virtual WebKit::WebView* GetWebView() = 0;
73 78
74 // Gets the focused node. If no such node exists then the node will be isNull. 79 // Gets the focused node. If no such node exists then the node will be isNull.
75 virtual WebKit::WebNode GetFocusedNode() const = 0; 80 virtual WebKit::WebNode GetFocusedNode() const = 0;
76 81
77 // Gets the node that the context menu was pressed over. 82 // Gets the node that the context menu was pressed over.
78 virtual WebKit::WebNode GetContextMenuNode() const = 0; 83 virtual WebKit::WebNode GetContextMenuNode() const = 0;
79 84
80 // Returns true if the parameter node is a textfield, text area, a content 85 // Returns true if the parameter node is a textfield, text area, a content
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const std::string& value) = 0; 156 const std::string& value) = 0;
152 virtual void ClearEditCommands() = 0; 157 virtual void ClearEditCommands() = 0;
153 158
154 protected: 159 protected:
155 virtual ~RenderView() {} 160 virtual ~RenderView() {}
156 }; 161 };
157 162
158 } // namespace content 163 } // namespace content
159 164
160 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698