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 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); | 2362 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); |
2363 if (rwhv) { | 2363 if (rwhv) { |
2364 SendPageMessage(new PageMsg_UpdateWindowScreenRect( | 2364 SendPageMessage(new PageMsg_UpdateWindowScreenRect( |
2365 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); | 2365 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); |
2366 } | 2366 } |
2367 | 2367 |
2368 if (browser_plugin_embedder_) | 2368 if (browser_plugin_embedder_) |
2369 browser_plugin_embedder_->DidSendScreenRects(); | 2369 browser_plugin_embedder_->DidSendScreenRects(); |
2370 } | 2370 } |
2371 | 2371 |
| 2372 void WebContentsImpl::OnFirstPaintAfterLoad( |
| 2373 RenderWidgetHostImpl* render_widget_host) { |
| 2374 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2375 DidFirstPaintAfterLoad(render_widget_host)); |
| 2376 } |
| 2377 |
2372 BrowserAccessibilityManager* | 2378 BrowserAccessibilityManager* |
2373 WebContentsImpl::GetRootBrowserAccessibilityManager() { | 2379 WebContentsImpl::GetRootBrowserAccessibilityManager() { |
2374 RenderFrameHostImpl* rfh = GetMainFrame(); | 2380 RenderFrameHostImpl* rfh = GetMainFrame(); |
2375 return rfh ? rfh->browser_accessibility_manager() : nullptr; | 2381 return rfh ? rfh->browser_accessibility_manager() : nullptr; |
2376 } | 2382 } |
2377 | 2383 |
2378 BrowserAccessibilityManager* | 2384 BrowserAccessibilityManager* |
2379 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2385 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { |
2380 RenderFrameHostImpl* rfh = GetMainFrame(); | 2386 RenderFrameHostImpl* rfh = GetMainFrame(); |
2381 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; | 2387 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; |
(...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5039 for (RenderViewHost* render_view_host : render_view_host_set) | 5045 for (RenderViewHost* render_view_host : render_view_host_set) |
5040 render_view_host->OnWebkitPreferencesChanged(); | 5046 render_view_host->OnWebkitPreferencesChanged(); |
5041 } | 5047 } |
5042 | 5048 |
5043 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5049 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
5044 JavaScriptDialogManager* dialog_manager) { | 5050 JavaScriptDialogManager* dialog_manager) { |
5045 dialog_manager_ = dialog_manager; | 5051 dialog_manager_ = dialog_manager; |
5046 } | 5052 } |
5047 | 5053 |
5048 } // namespace content | 5054 } // namespace content |
OLD | NEW |