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

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

Issue 128453002: Move Find Operations from RenderViewHost to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/render_widget_host.h" 12 #include "content/public/browser/render_widget_host.h"
13 #include "content/public/common/file_chooser_params.h" 13 #include "content/public/common/file_chooser_params.h"
14 #include "content/public/common/page_zoom.h" 14 #include "content/public/common/page_zoom.h"
15 #include "content/public/common/stop_find_action.h" 15 #include "content/public/common/stop_find_action.h"
jam 2014/01/08 18:10:32 nit: remove now
16 #include "third_party/WebKit/public/web/WebDragOperation.h" 16 #include "third_party/WebKit/public/web/WebDragOperation.h"
17 17
18 class GURL; 18 class GURL;
19 struct WebPreferences; 19 struct WebPreferences;
20 20
21 namespace gfx { 21 namespace gfx {
22 class Point; 22 class Point;
23 } 23 }
24 24
25 namespace base { 25 namespace base {
26 class FilePath; 26 class FilePath;
27 class Value; 27 class Value;
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 blink { 38 namespace blink {
39 struct WebFindOptions;
40 struct WebMediaPlayerAction; 39 struct WebMediaPlayerAction;
41 struct WebPluginAction; 40 struct WebPluginAction;
42 } 41 }
43 42
44 namespace content { 43 namespace content {
45 44
46 class ChildProcessSecurityPolicy; 45 class ChildProcessSecurityPolicy;
47 class RenderViewHostDelegate; 46 class RenderViewHostDelegate;
48 class SessionStorageNamespace; 47 class SessionStorageNamespace;
49 class SiteInstance; 48 class SiteInstance;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const JavascriptResultCallback& callback) = 0; 173 const JavascriptResultCallback& callback) = 0;
175 174
176 // Tells the renderer to perform the given action on the plugin located at 175 // Tells the renderer to perform the given action on the plugin located at
177 // the given point. 176 // the given point.
178 virtual void ExecutePluginActionAtLocation( 177 virtual void ExecutePluginActionAtLocation(
179 const gfx::Point& location, const blink::WebPluginAction& action) = 0; 178 const gfx::Point& location, const blink::WebPluginAction& action) = 0;
180 179
181 // Asks the renderer to exit fullscreen 180 // Asks the renderer to exit fullscreen
182 virtual void ExitFullscreen() = 0; 181 virtual void ExitFullscreen() = 0;
183 182
184 // Finds text on a page.
185 virtual void Find(int request_id, const base::string16& search_text,
186 const blink::WebFindOptions& options) = 0;
187
188 // Notifies the renderer that the user has closed the FindInPage window
189 // (and what action to take regarding the selection).
190 virtual void StopFinding(StopFindAction action) = 0;
191
192 // Causes the renderer to invoke the onbeforeunload event handler. The 183 // Causes the renderer to invoke the onbeforeunload event handler. The
193 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and 184 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and
194 // SwapOut, which fire the PageUnload event. 185 // SwapOut, which fire the PageUnload event.
195 // 186 //
196 // Set bool for_cross_site_transition when this close is just for the current 187 // Set bool for_cross_site_transition when this close is just for the current
197 // RenderView in the case of a cross-site transition. False means we're 188 // RenderView in the case of a cross-site transition. False means we're
198 // closing the entire tab. 189 // closing the entire tab.
199 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; 190 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0;
200 191
201 // Notifies the Listener that one or more files have been chosen by the user 192 // Notifies the Listener that one or more files have been chosen by the user
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 277
287 private: 278 private:
288 // This interface should only be implemented inside content. 279 // This interface should only be implemented inside content.
289 friend class RenderViewHostImpl; 280 friend class RenderViewHostImpl;
290 RenderViewHost() {} 281 RenderViewHost() {}
291 }; 282 };
292 283
293 } // namespace content 284 } // namespace content
294 285
295 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 286 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698