Chromium Code Reviews| OLD | NEW |
|---|---|
| 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> |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 496 #if defined(OS_ANDROID) | 496 #if defined(OS_ANDROID) |
| 497 void RenderViewHostImpl::ActivateNearestFindResult(int request_id, | 497 void RenderViewHostImpl::ActivateNearestFindResult(int request_id, |
| 498 float x, | 498 float x, |
| 499 float y) { | 499 float y) { |
| 500 Send(new ViewMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y)); | 500 Send(new ViewMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y)); |
| 501 } | 501 } |
| 502 | 502 |
| 503 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { | 503 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { |
| 504 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); | 504 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); |
| 505 } | 505 } |
| 506 | |
| 507 void RenderViewHostImpl::SynchronousFind(int request_id, | |
| 508 const string16& search_text, | |
| 509 const WebKit::WebFindOptions& options, | |
| 510 int* match_count, | |
| 511 int* active_ordinal) { | |
| 512 Send(new ViewMsg_SynchronousFind(GetRoutingID(), request_id, search_text, | |
|
jam
2012/09/19 16:55:43
can you make this conditional for webview as well?
Leandro GraciĆ” Gil
2012/09/19 18:08:59
Sounds good to me. I'll do as soon as the check is
| |
| 513 options, match_count, active_ordinal)); | |
| 514 } | |
| 506 #endif | 515 #endif |
| 507 | 516 |
| 508 void RenderViewHostImpl::DragTargetDragEnter( | 517 void RenderViewHostImpl::DragTargetDragEnter( |
| 509 const WebDropData& drop_data, | 518 const WebDropData& drop_data, |
| 510 const gfx::Point& client_pt, | 519 const gfx::Point& client_pt, |
| 511 const gfx::Point& screen_pt, | 520 const gfx::Point& screen_pt, |
| 512 WebDragOperationsMask operations_allowed, | 521 WebDragOperationsMask operations_allowed, |
| 513 int key_modifiers) { | 522 int key_modifiers) { |
| 514 const int renderer_id = GetProcess()->GetID(); | 523 const int renderer_id = GetProcess()->GetID(); |
| 515 ChildProcessSecurityPolicyImpl* policy = | 524 ChildProcessSecurityPolicyImpl* policy = |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1921 // can cause navigations to be ignored in OnMsgNavigate. | 1930 // can cause navigations to be ignored in OnMsgNavigate. |
| 1922 is_waiting_for_beforeunload_ack_ = false; | 1931 is_waiting_for_beforeunload_ack_ = false; |
| 1923 is_waiting_for_unload_ack_ = false; | 1932 is_waiting_for_unload_ack_ = false; |
| 1924 } | 1933 } |
| 1925 | 1934 |
| 1926 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1935 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
| 1927 STLDeleteValues(&power_save_blockers_); | 1936 STLDeleteValues(&power_save_blockers_); |
| 1928 } | 1937 } |
| 1929 | 1938 |
| 1930 } // namespace content | 1939 } // namespace content |
| OLD | NEW |