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

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

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
15 #include "base/command_line.h"
15 #include "base/message_loop.h" 16 #include "base/message_loop.h"
16 #include "base/stl_util.h" 17 #include "base/stl_util.h"
17 #include "base/string_util.h" 18 #include "base/string_util.h"
18 #include "base/time.h" 19 #include "base/time.h"
19 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
20 #include "base/values.h" 21 #include "base/values.h"
21 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 22 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
22 #include "content/browser/child_process_security_policy_impl.h" 23 #include "content/browser/child_process_security_policy_impl.h"
23 #include "content/browser/cross_site_request_manager.h" 24 #include "content/browser/cross_site_request_manager.h"
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 #if defined(OS_ANDROID) 504 #if defined(OS_ANDROID)
504 void RenderViewHostImpl::ActivateNearestFindResult(int request_id, 505 void RenderViewHostImpl::ActivateNearestFindResult(int request_id,
505 float x, 506 float x,
506 float y) { 507 float y) {
507 Send(new ViewMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y)); 508 Send(new ViewMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y));
508 } 509 }
509 510
510 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { 511 void RenderViewHostImpl::RequestFindMatchRects(int current_version) {
511 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); 512 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version));
512 } 513 }
514
515 void RenderViewHostImpl::SynchronousFind(int request_id,
516 const string16& search_text,
517 const WebKit::WebFindOptions& options,
518 int* match_count,
519 int* active_ordinal) {
520 if (!CommandLine::ForCurrentProcess()->HasSwitch(
521 switches::kEnableWebViewSynchronousAPIs)) {
522 return;
523 }
524
525 Send(new ViewMsg_SynchronousFind(GetRoutingID(), request_id, search_text,
526 options, match_count, active_ordinal));
527 }
513 #endif 528 #endif
514 529
515 void RenderViewHostImpl::DragTargetDragEnter( 530 void RenderViewHostImpl::DragTargetDragEnter(
516 const WebDropData& drop_data, 531 const WebDropData& drop_data,
517 const gfx::Point& client_pt, 532 const gfx::Point& client_pt,
518 const gfx::Point& screen_pt, 533 const gfx::Point& screen_pt,
519 WebDragOperationsMask operations_allowed, 534 WebDragOperationsMask operations_allowed,
520 int key_modifiers) { 535 int key_modifiers) {
521 const int renderer_id = GetProcess()->GetID(); 536 const int renderer_id = GetProcess()->GetID();
522 ChildProcessSecurityPolicyImpl* policy = 537 ChildProcessSecurityPolicyImpl* policy =
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 // can cause navigations to be ignored in OnMsgNavigate. 1953 // can cause navigations to be ignored in OnMsgNavigate.
1939 is_waiting_for_beforeunload_ack_ = false; 1954 is_waiting_for_beforeunload_ack_ = false;
1940 is_waiting_for_unload_ack_ = false; 1955 is_waiting_for_unload_ack_ = false;
1941 } 1956 }
1942 1957
1943 void RenderViewHostImpl::ClearPowerSaveBlockers() { 1958 void RenderViewHostImpl::ClearPowerSaveBlockers() {
1944 STLDeleteValues(&power_save_blockers_); 1959 STLDeleteValues(&power_save_blockers_);
1945 } 1960 }
1946 1961
1947 } // namespace content 1962 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698