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

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: Fixed android build 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"
16 #include "third_party/WebKit/public/web/WebDragOperation.h" 15 #include "third_party/WebKit/public/web/WebDragOperation.h"
17 16
18 class GURL; 17 class GURL;
19 struct WebPreferences; 18 struct WebPreferences;
20 19
21 namespace gfx { 20 namespace gfx {
22 class Point; 21 class Point;
23 } 22 }
24 23
25 namespace base { 24 namespace base {
26 class FilePath; 25 class FilePath;
27 class Value; 26 class Value;
28 } 27 }
29 28
30 namespace media { 29 namespace media {
31 class AudioOutputController; 30 class AudioOutputController;
32 } 31 }
33 32
34 namespace ui { 33 namespace ui {
35 struct SelectedFileInfo; 34 struct SelectedFileInfo;
36 } 35 }
37 36
38 namespace blink { 37 namespace blink {
39 struct WebFindOptions;
40 struct WebMediaPlayerAction; 38 struct WebMediaPlayerAction;
41 struct WebPluginAction; 39 struct WebPluginAction;
42 } 40 }
43 41
44 namespace content { 42 namespace content {
45 43
46 class ChildProcessSecurityPolicy; 44 class ChildProcessSecurityPolicy;
47 class RenderViewHostDelegate; 45 class RenderViewHostDelegate;
48 class SessionStorageNamespace; 46 class SessionStorageNamespace;
49 class SiteInstance; 47 class SiteInstance;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const JavascriptResultCallback& callback) = 0; 172 const JavascriptResultCallback& callback) = 0;
175 173
176 // Tells the renderer to perform the given action on the plugin located at 174 // Tells the renderer to perform the given action on the plugin located at
177 // the given point. 175 // the given point.
178 virtual void ExecutePluginActionAtLocation( 176 virtual void ExecutePluginActionAtLocation(
179 const gfx::Point& location, const blink::WebPluginAction& action) = 0; 177 const gfx::Point& location, const blink::WebPluginAction& action) = 0;
180 178
181 // Asks the renderer to exit fullscreen 179 // Asks the renderer to exit fullscreen
182 virtual void ExitFullscreen() = 0; 180 virtual void ExitFullscreen() = 0;
183 181
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 182 // Causes the renderer to invoke the onbeforeunload event handler. The
193 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and 183 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and
194 // SwapOut, which fire the PageUnload event. 184 // SwapOut, which fire the PageUnload event.
195 // 185 //
196 // Set bool for_cross_site_transition when this close is just for the current 186 // 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 187 // RenderView in the case of a cross-site transition. False means we're
198 // closing the entire tab. 188 // closing the entire tab.
199 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; 189 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0;
200 190
201 // Notifies the Listener that one or more files have been chosen by the user 191 // 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 276
287 private: 277 private:
288 // This interface should only be implemented inside content. 278 // This interface should only be implemented inside content.
289 friend class RenderViewHostImpl; 279 friend class RenderViewHostImpl;
290 RenderViewHost() {} 280 RenderViewHost() {}
291 }; 281 };
292 282
293 } // namespace content 283 } // namespace content
294 284
295 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 285 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698