| 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 2363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); | 2374 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); |
| 2375 if (rwhv) { | 2375 if (rwhv) { |
| 2376 SendPageMessage(new PageMsg_UpdateWindowScreenRect( | 2376 SendPageMessage(new PageMsg_UpdateWindowScreenRect( |
| 2377 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); | 2377 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); |
| 2378 } | 2378 } |
| 2379 | 2379 |
| 2380 if (browser_plugin_embedder_) | 2380 if (browser_plugin_embedder_) |
| 2381 browser_plugin_embedder_->DidSendScreenRects(); | 2381 browser_plugin_embedder_->DidSendScreenRects(); |
| 2382 } | 2382 } |
| 2383 | 2383 |
| 2384 void WebContentsImpl::OnFirstPaintAfterLoad( |
| 2385 RenderWidgetHostImpl* render_widget_host) { |
| 2386 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2387 DidFirstPaintAfterLoad(render_widget_host)); |
| 2388 } |
| 2389 |
| 2384 BrowserAccessibilityManager* | 2390 BrowserAccessibilityManager* |
| 2385 WebContentsImpl::GetRootBrowserAccessibilityManager() { | 2391 WebContentsImpl::GetRootBrowserAccessibilityManager() { |
| 2386 RenderFrameHostImpl* rfh = GetMainFrame(); | 2392 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2387 return rfh ? rfh->browser_accessibility_manager() : nullptr; | 2393 return rfh ? rfh->browser_accessibility_manager() : nullptr; |
| 2388 } | 2394 } |
| 2389 | 2395 |
| 2390 BrowserAccessibilityManager* | 2396 BrowserAccessibilityManager* |
| 2391 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2397 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2392 RenderFrameHostImpl* rfh = GetMainFrame(); | 2398 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2393 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; | 2399 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; |
| (...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5059 for (RenderViewHost* render_view_host : render_view_host_set) | 5065 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5060 render_view_host->OnWebkitPreferencesChanged(); | 5066 render_view_host->OnWebkitPreferencesChanged(); |
| 5061 } | 5067 } |
| 5062 | 5068 |
| 5063 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5069 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 5064 JavaScriptDialogManager* dialog_manager) { | 5070 JavaScriptDialogManager* dialog_manager) { |
| 5065 dialog_manager_ = dialog_manager; | 5071 dialog_manager_ = dialog_manager; |
| 5066 } | 5072 } |
| 5067 | 5073 |
| 5068 } // namespace content | 5074 } // namespace content |
| OLD | NEW |