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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2445 return id; | 2445 return id; |
2446 } | 2446 } |
2447 | 2447 |
2448 bool WebContentsImpl::IsSubframe() const { | 2448 bool WebContentsImpl::IsSubframe() const { |
2449 return is_subframe_; | 2449 return is_subframe_; |
2450 } | 2450 } |
2451 | 2451 |
2452 void WebContentsImpl::Find(int request_id, | 2452 void WebContentsImpl::Find(int request_id, |
2453 const base::string16& search_text, | 2453 const base::string16& search_text, |
2454 const blink::WebFindOptions& options) { | 2454 const blink::WebFindOptions& options) { |
| 2455 // See if a top level browser plugin handles the find request first. |
| 2456 if (browser_plugin_embedder_ && |
| 2457 browser_plugin_embedder_->Find(request_id, search_text, options)) { |
| 2458 return; |
| 2459 } |
2455 Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options)); | 2460 Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options)); |
2456 } | 2461 } |
2457 | 2462 |
2458 void WebContentsImpl::StopFinding(StopFindAction action) { | 2463 void WebContentsImpl::StopFinding(StopFindAction action) { |
2459 Send(new ViewMsg_StopFinding(GetRoutingID(), action)); | 2464 Send(new ViewMsg_StopFinding(GetRoutingID(), action)); |
2460 } | 2465 } |
2461 | 2466 |
2462 void WebContentsImpl::InsertCSS(const std::string& css) { | 2467 void WebContentsImpl::InsertCSS(const std::string& css) { |
2463 GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( | 2468 GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( |
2464 GetMainFrame()->GetRoutingID(), css)); | 2469 GetMainFrame()->GetRoutingID(), css)); |
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4373 node->render_manager()->ResumeResponseDeferredAtStart(); | 4378 node->render_manager()->ResumeResponseDeferredAtStart(); |
4374 } | 4379 } |
4375 | 4380 |
4376 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4381 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4377 force_disable_overscroll_content_ = force_disable; | 4382 force_disable_overscroll_content_ = force_disable; |
4378 if (view_) | 4383 if (view_) |
4379 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4384 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4380 } | 4385 } |
4381 | 4386 |
4382 } // namespace content | 4387 } // namespace content |
OLD | NEW |