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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2489 const blink::WebFindOptions& options) { | 2489 const blink::WebFindOptions& options) { |
2490 // See if a top level browser plugin handles the find request first. | 2490 // See if a top level browser plugin handles the find request first. |
2491 if (browser_plugin_embedder_ && | 2491 if (browser_plugin_embedder_ && |
2492 browser_plugin_embedder_->Find(request_id, search_text, options)) { | 2492 browser_plugin_embedder_->Find(request_id, search_text, options)) { |
2493 return; | 2493 return; |
2494 } | 2494 } |
2495 Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options)); | 2495 Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options)); |
2496 } | 2496 } |
2497 | 2497 |
2498 void WebContentsImpl::StopFinding(StopFindAction action) { | 2498 void WebContentsImpl::StopFinding(StopFindAction action) { |
| 2499 // See if a top level browser plugin handles the stop finding request first. |
| 2500 if (browser_plugin_embedder_ && |
| 2501 browser_plugin_embedder_->StopFinding(action)) { |
| 2502 return; |
| 2503 } |
2499 Send(new ViewMsg_StopFinding(GetRoutingID(), action)); | 2504 Send(new ViewMsg_StopFinding(GetRoutingID(), action)); |
2500 } | 2505 } |
2501 | 2506 |
2502 void WebContentsImpl::InsertCSS(const std::string& css) { | 2507 void WebContentsImpl::InsertCSS(const std::string& css) { |
2503 GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( | 2508 GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( |
2504 GetMainFrame()->GetRoutingID(), css)); | 2509 GetMainFrame()->GetRoutingID(), css)); |
2505 } | 2510 } |
2506 | 2511 |
2507 bool WebContentsImpl::WasRecentlyAudible() { | 2512 bool WebContentsImpl::WasRecentlyAudible() { |
2508 return audio_stream_monitor_.WasRecentlyAudible(); | 2513 return audio_stream_monitor_.WasRecentlyAudible(); |
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4483 node->render_manager()->ResumeResponseDeferredAtStart(); | 4488 node->render_manager()->ResumeResponseDeferredAtStart(); |
4484 } | 4489 } |
4485 | 4490 |
4486 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4491 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4487 force_disable_overscroll_content_ = force_disable; | 4492 force_disable_overscroll_content_ = force_disable; |
4488 if (view_) | 4493 if (view_) |
4489 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4494 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4490 } | 4495 } |
4491 | 4496 |
4492 } // namespace content | 4497 } // namespace content |
OLD | NEW |