| 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 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); | 2356 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); |
| 2357 if (rwhv) { | 2357 if (rwhv) { |
| 2358 SendPageMessage(new PageMsg_UpdateWindowScreenRect( | 2358 SendPageMessage(new PageMsg_UpdateWindowScreenRect( |
| 2359 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); | 2359 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); |
| 2360 } | 2360 } |
| 2361 | 2361 |
| 2362 if (browser_plugin_embedder_) | 2362 if (browser_plugin_embedder_) |
| 2363 browser_plugin_embedder_->DidSendScreenRects(); | 2363 browser_plugin_embedder_->DidSendScreenRects(); |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 void WebContentsImpl::OnFirstPaintAfterLoad( |
| 2367 RenderWidgetHostImpl* render_widget_host) { |
| 2368 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2369 DidFirstPaintAfterLoad(render_widget_host)); |
| 2370 } |
| 2371 |
| 2366 BrowserAccessibilityManager* | 2372 BrowserAccessibilityManager* |
| 2367 WebContentsImpl::GetRootBrowserAccessibilityManager() { | 2373 WebContentsImpl::GetRootBrowserAccessibilityManager() { |
| 2368 RenderFrameHostImpl* rfh = GetMainFrame(); | 2374 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2369 return rfh ? rfh->browser_accessibility_manager() : nullptr; | 2375 return rfh ? rfh->browser_accessibility_manager() : nullptr; |
| 2370 } | 2376 } |
| 2371 | 2377 |
| 2372 BrowserAccessibilityManager* | 2378 BrowserAccessibilityManager* |
| 2373 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2379 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2374 RenderFrameHostImpl* rfh = GetMainFrame(); | 2380 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2375 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; | 2381 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; |
| (...skipping 2644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5020 for (RenderViewHost* render_view_host : render_view_host_set) | 5026 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5021 render_view_host->OnWebkitPreferencesChanged(); | 5027 render_view_host->OnWebkitPreferencesChanged(); |
| 5022 } | 5028 } |
| 5023 | 5029 |
| 5024 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5030 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 5025 JavaScriptDialogManager* dialog_manager) { | 5031 JavaScriptDialogManager* dialog_manager) { |
| 5026 dialog_manager_ = dialog_manager; | 5032 dialog_manager_ = dialog_manager; |
| 5027 } | 5033 } |
| 5028 | 5034 |
| 5029 } // namespace content | 5035 } // namespace content |
| OLD | NEW |