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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <utility> | 10 #include <utility> |
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 // See if a top level browser plugin handles the stop finding request first. | 3102 // See if a top level browser plugin handles the stop finding request first. |
3103 // TODO(paulmeyer): Remove this after find-in-page works across GuestViews. | 3103 // TODO(paulmeyer): Remove this after find-in-page works across GuestViews. |
3104 if (browser_plugin_embedder_ && | 3104 if (browser_plugin_embedder_ && |
3105 browser_plugin_embedder_->StopFinding(action)) { | 3105 browser_plugin_embedder_->StopFinding(action)) { |
3106 return; | 3106 return; |
3107 } | 3107 } |
3108 | 3108 |
3109 GetOrCreateFindRequestManager()->StopFinding(action); | 3109 GetOrCreateFindRequestManager()->StopFinding(action); |
3110 } | 3110 } |
3111 | 3111 |
3112 void WebContentsImpl::InsertCSS(const std::string& css) { | |
3113 GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( | |
3114 GetMainFrame()->GetRoutingID(), css)); | |
3115 } | |
3116 | |
3117 bool WebContentsImpl::WasRecentlyAudible() { | 3112 bool WebContentsImpl::WasRecentlyAudible() { |
3118 return audio_stream_monitor_.WasRecentlyAudible() || | 3113 return audio_stream_monitor_.WasRecentlyAudible() || |
3119 (browser_plugin_embedder_ && | 3114 (browser_plugin_embedder_ && |
3120 browser_plugin_embedder_->WereAnyGuestsRecentlyAudible()); | 3115 browser_plugin_embedder_->WereAnyGuestsRecentlyAudible()); |
3121 } | 3116 } |
3122 | 3117 |
3123 void WebContentsImpl::GetManifest(const GetManifestCallback& callback) { | 3118 void WebContentsImpl::GetManifest(const GetManifestCallback& callback) { |
3124 manifest_manager_host_->GetManifest(GetMainFrame(), callback); | 3119 manifest_manager_host_->GetManifest(GetMainFrame(), callback); |
3125 } | 3120 } |
3126 | 3121 |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5170 for (RenderViewHost* render_view_host : render_view_host_set) | 5165 for (RenderViewHost* render_view_host : render_view_host_set) |
5171 render_view_host->OnWebkitPreferencesChanged(); | 5166 render_view_host->OnWebkitPreferencesChanged(); |
5172 } | 5167 } |
5173 | 5168 |
5174 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5169 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
5175 JavaScriptDialogManager* dialog_manager) { | 5170 JavaScriptDialogManager* dialog_manager) { |
5176 dialog_manager_ = dialog_manager; | 5171 dialog_manager_ = dialog_manager; |
5177 } | 5172 } |
5178 | 5173 |
5179 } // namespace content | 5174 } // namespace content |
OLD | NEW |