| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index 7b992670317025f0f0e38e836ec5efedcf7b4858..246d121f489e0d8b4d3b3eae2fe306e153196b55 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/i18n/rtl.h"
|
| #include "base/json/json_reader.h"
|
| #include "base/json/json_writer.h"
|
| +#include "base/command_line.h"
|
| #include "base/message_loop.h"
|
| #include "base/stl_util.h"
|
| #include "base/string_util.h"
|
| @@ -510,6 +511,20 @@ void RenderViewHostImpl::ActivateNearestFindResult(int request_id,
|
| void RenderViewHostImpl::RequestFindMatchRects(int current_version) {
|
| Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version));
|
| }
|
| +
|
| +void RenderViewHostImpl::SynchronousFind(int request_id,
|
| + const string16& search_text,
|
| + const WebKit::WebFindOptions& options,
|
| + int* match_count,
|
| + int* active_ordinal) {
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableWebViewSynchronousAPIs)) {
|
| + return;
|
| + }
|
| +
|
| + Send(new ViewMsg_SynchronousFind(GetRoutingID(), request_id, search_text,
|
| + options, match_count, active_ordinal));
|
| +}
|
| #endif
|
|
|
| void RenderViewHostImpl::DragTargetDragEnter(
|
|
|