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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // for which another renderer will need to run an onunload event handler. 313 // for which another renderer will need to run an onunload event handler.
314 // This is called before the first navigation event for this RenderViewHost, 314 // This is called before the first navigation event for this RenderViewHost,
315 // and again after the corresponding OnCrossSiteResponse. 315 // and again after the corresponding OnCrossSiteResponse.
316 void SetHasPendingCrossSiteRequest(bool has_pending_request, int request_id); 316 void SetHasPendingCrossSiteRequest(bool has_pending_request, int request_id);
317 317
318 // Returns the request_id for the pending cross-site request. 318 // Returns the request_id for the pending cross-site request.
319 // This is just needed in case the unload of the current page 319 // This is just needed in case the unload of the current page
320 // hangs, in which case we need to swap to the pending RenderViewHost. 320 // hangs, in which case we need to swap to the pending RenderViewHost.
321 int GetPendingRequestId(); 321 int GetPendingRequestId();
322 322
323 #if defined(OS_ANDROID)
324 // Selects and zooms to the find result nearest to the point (x,y)
325 // defined in find-in-page coordinates.
326 virtual void ActivateNearestFindResult(int request_id,
jam 2012/09/04 16:39:09 don't duplicate comments from interface in impleme
Leandro GraciĆ” Gil 2012/09/04 18:25:50 Done.
327 float x,
328 float y) OVERRIDE;
329
330 // Asks the renderer to send the rects of the current find matches.
331 virtual void RequestFindMatchRects(int current_version) OVERRIDE;
332 #endif
333
323 // Notifies the RenderView that the JavaScript message that was shown was 334 // Notifies the RenderView that the JavaScript message that was shown was
324 // closed by the user. 335 // closed by the user.
325 void JavaScriptDialogClosed(IPC::Message* reply_msg, 336 void JavaScriptDialogClosed(IPC::Message* reply_msg,
326 bool success, 337 bool success,
327 const string16& user_input); 338 const string16& user_input);
328 339
329 // Tells the renderer view to focus the first (last if reverse is true) node. 340 // Tells the renderer view to focus the first (last if reverse is true) node.
330 void SetInitialFocus(bool reverse); 341 void SetInitialFocus(bool reverse);
331 342
332 // Get html data by serializing all frames of current page with lists 343 // Get html data by serializing all frames of current page with lists
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 677 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
667 }; 678 };
668 679
669 #if defined(COMPILER_MSVC) 680 #if defined(COMPILER_MSVC)
670 #pragma warning(pop) 681 #pragma warning(pop)
671 #endif 682 #endif
672 683
673 } // namespace content 684 } // namespace content
674 685
675 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 686 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698