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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace media { 30 namespace media {
31 class AudioOutputController; 31 class AudioOutputController;
32 } 32 }
33 33
34 namespace ui { 34 namespace ui {
35 struct SelectedFileInfo; 35 struct SelectedFileInfo;
36 } 36 }
37 37
38 namespace WebKit { 38 namespace blink {
39 struct WebFindOptions; 39 struct WebFindOptions;
40 struct WebMediaPlayerAction; 40 struct WebMediaPlayerAction;
41 struct WebPluginAction; 41 struct WebPluginAction;
42 } 42 }
43 43
44 namespace content { 44 namespace content {
45 45
46 class ChildProcessSecurityPolicy; 46 class ChildProcessSecurityPolicy;
47 class RenderProcessHost; 47 class RenderProcessHost;
48 class RenderViewHostDelegate; 48 class RenderViewHostDelegate;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 const std::vector<base::FilePath>& files) = 0; 113 const std::vector<base::FilePath>& files) = 0;
114 114
115 // Tells the renderer not to add scrollbars with height and width below a 115 // Tells the renderer not to add scrollbars with height and width below a
116 // threshold. 116 // threshold.
117 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; 117 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0;
118 118
119 // Notifies the renderer that a a drag operation that it started has ended, 119 // Notifies the renderer that a a drag operation that it started has ended,
120 // either in a drop or by being cancelled. 120 // either in a drop or by being cancelled.
121 virtual void DragSourceEndedAt( 121 virtual void DragSourceEndedAt(
122 int client_x, int client_y, int screen_x, int screen_y, 122 int client_x, int client_y, int screen_x, int screen_y,
123 WebKit::WebDragOperation operation) = 0; 123 blink::WebDragOperation operation) = 0;
124 124
125 // Notifies the renderer that a drag and drop operation is in progress, with 125 // Notifies the renderer that a drag and drop operation is in progress, with
126 // droppable items positioned over the renderer's view. 126 // droppable items positioned over the renderer's view.
127 virtual void DragSourceMovedTo( 127 virtual void DragSourceMovedTo(
128 int client_x, int client_y, int screen_x, int screen_y) = 0; 128 int client_x, int client_y, int screen_x, int screen_y) = 0;
129 129
130 // Notifies the renderer that we're done with the drag and drop operation. 130 // Notifies the renderer that we're done with the drag and drop operation.
131 // This allows the renderer to reset some state. 131 // This allows the renderer to reset some state.
132 virtual void DragSourceSystemDragEnded() = 0; 132 virtual void DragSourceSystemDragEnded() = 0;
133 133
134 // D&d drop target messages that get sent to WebKit. 134 // D&d drop target messages that get sent to WebKit.
135 virtual void DragTargetDragEnter( 135 virtual void DragTargetDragEnter(
136 const DropData& drop_data, 136 const DropData& drop_data,
137 const gfx::Point& client_pt, 137 const gfx::Point& client_pt,
138 const gfx::Point& screen_pt, 138 const gfx::Point& screen_pt,
139 WebKit::WebDragOperationsMask operations_allowed, 139 blink::WebDragOperationsMask operations_allowed,
140 int key_modifiers) = 0; 140 int key_modifiers) = 0;
141 virtual void DragTargetDragOver( 141 virtual void DragTargetDragOver(
142 const gfx::Point& client_pt, 142 const gfx::Point& client_pt,
143 const gfx::Point& screen_pt, 143 const gfx::Point& screen_pt,
144 WebKit::WebDragOperationsMask operations_allowed, 144 blink::WebDragOperationsMask operations_allowed,
145 int key_modifiers) = 0; 145 int key_modifiers) = 0;
146 virtual void DragTargetDragLeave() = 0; 146 virtual void DragTargetDragLeave() = 0;
147 virtual void DragTargetDrop(const gfx::Point& client_pt, 147 virtual void DragTargetDrop(const gfx::Point& client_pt,
148 const gfx::Point& screen_pt, 148 const gfx::Point& screen_pt,
149 int key_modifiers) = 0; 149 int key_modifiers) = 0;
150 150
151 // Instructs the RenderView to automatically resize and send back updates 151 // Instructs the RenderView to automatically resize and send back updates
152 // for the new size. 152 // for the new size.
153 virtual void EnableAutoResize(const gfx::Size& min_size, 153 virtual void EnableAutoResize(const gfx::Size& min_size,
154 const gfx::Size& max_size) = 0; 154 const gfx::Size& max_size) = 0;
155 155
156 // Turns off auto-resize and gives a new size that the view should be. 156 // Turns off auto-resize and gives a new size that the view should be.
157 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; 157 virtual void DisableAutoResize(const gfx::Size& new_size) = 0;
158 158
159 // Instructs the RenderView to send back updates to the preferred size. 159 // Instructs the RenderView to send back updates to the preferred size.
160 virtual void EnablePreferredSizeMode() = 0; 160 virtual void EnablePreferredSizeMode() = 0;
161 161
162 // Executes custom context menu action that was provided from WebKit. 162 // Executes custom context menu action that was provided from WebKit.
163 virtual void ExecuteCustomContextMenuCommand( 163 virtual void ExecuteCustomContextMenuCommand(
164 int action, const CustomContextMenuContext& context) = 0; 164 int action, const CustomContextMenuContext& context) = 0;
165 165
166 // Tells the renderer to perform the given action on the media player 166 // Tells the renderer to perform the given action on the media player
167 // located at the given point. 167 // located at the given point.
168 virtual void ExecuteMediaPlayerActionAtLocation( 168 virtual void ExecuteMediaPlayerActionAtLocation(
169 const gfx::Point& location, 169 const gfx::Point& location,
170 const WebKit::WebMediaPlayerAction& action) = 0; 170 const blink::WebMediaPlayerAction& action) = 0;
171 171
172 // Runs some javascript within the context of a frame in the page. 172 // Runs some javascript within the context of a frame in the page.
173 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath, 173 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath,
174 const string16& jscript) = 0; 174 const string16& jscript) = 0;
175 175
176 // Runs some javascript within the context of a frame in the page. The result 176 // Runs some javascript within the context of a frame in the page. The result
177 // is sent back via the provided callback. 177 // is sent back via the provided callback.
178 typedef base::Callback<void(const base::Value*)> JavascriptResultCallback; 178 typedef base::Callback<void(const base::Value*)> JavascriptResultCallback;
179 virtual void ExecuteJavascriptInWebFrameCallbackResult( 179 virtual void ExecuteJavascriptInWebFrameCallbackResult(
180 const string16& frame_xpath, 180 const string16& frame_xpath,
181 const string16& jscript, 181 const string16& jscript,
182 const JavascriptResultCallback& callback) = 0; 182 const JavascriptResultCallback& callback) = 0;
183 183
184 // Tells the renderer to perform the given action on the plugin located at 184 // Tells the renderer to perform the given action on the plugin located at
185 // the given point. 185 // the given point.
186 virtual void ExecutePluginActionAtLocation( 186 virtual void ExecutePluginActionAtLocation(
187 const gfx::Point& location, const WebKit::WebPluginAction& action) = 0; 187 const gfx::Point& location, const blink::WebPluginAction& action) = 0;
188 188
189 // Asks the renderer to exit fullscreen 189 // Asks the renderer to exit fullscreen
190 virtual void ExitFullscreen() = 0; 190 virtual void ExitFullscreen() = 0;
191 191
192 // Finds text on a page. 192 // Finds text on a page.
193 virtual void Find(int request_id, const string16& search_text, 193 virtual void Find(int request_id, const string16& search_text,
194 const WebKit::WebFindOptions& options) = 0; 194 const blink::WebFindOptions& options) = 0;
195 195
196 // Notifies the renderer that the user has closed the FindInPage window 196 // Notifies the renderer that the user has closed the FindInPage window
197 // (and what action to take regarding the selection). 197 // (and what action to take regarding the selection).
198 virtual void StopFinding(StopFindAction action) = 0; 198 virtual void StopFinding(StopFindAction action) = 0;
199 199
200 // Causes the renderer to invoke the onbeforeunload event handler. The 200 // Causes the renderer to invoke the onbeforeunload event handler. The
201 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and 201 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and
202 // SwapOut, which fire the PageUnload event. 202 // SwapOut, which fire the PageUnload event.
203 // 203 //
204 // Set bool for_cross_site_transition when this close is just for the current 204 // Set bool for_cross_site_transition when this close is just for the current
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 private: 299 private:
300 // This interface should only be implemented inside content. 300 // This interface should only be implemented inside content.
301 friend class RenderViewHostImpl; 301 friend class RenderViewHostImpl;
302 RenderViewHost() {} 302 RenderViewHost() {}
303 }; 303 };
304 304
305 } // namespace content 305 } // namespace content
306 306
307 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 307 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698