| 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 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 | 2534 |
| 2535 return text_input_manager_.get(); | 2535 return text_input_manager_.get(); |
| 2536 } | 2536 } |
| 2537 | 2537 |
| 2538 bool WebContentsImpl::OnUpdateDragCursor() { | 2538 bool WebContentsImpl::OnUpdateDragCursor() { |
| 2539 if (browser_plugin_embedder_) | 2539 if (browser_plugin_embedder_) |
| 2540 return browser_plugin_embedder_->OnUpdateDragCursor(); | 2540 return browser_plugin_embedder_->OnUpdateDragCursor(); |
| 2541 return false; | 2541 return false; |
| 2542 } | 2542 } |
| 2543 | 2543 |
| 2544 bool WebContentsImpl::IsWidgetForMainFrame( |
| 2545 RenderWidgetHostImpl* render_widget_host) { |
| 2546 return render_widget_host == GetMainFrame()->GetRenderWidgetHost(); |
| 2547 } |
| 2548 |
| 2544 BrowserAccessibilityManager* | 2549 BrowserAccessibilityManager* |
| 2545 WebContentsImpl::GetRootBrowserAccessibilityManager() { | 2550 WebContentsImpl::GetRootBrowserAccessibilityManager() { |
| 2546 RenderFrameHostImpl* rfh = GetMainFrame(); | 2551 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2547 return rfh ? rfh->browser_accessibility_manager() : nullptr; | 2552 return rfh ? rfh->browser_accessibility_manager() : nullptr; |
| 2548 } | 2553 } |
| 2549 | 2554 |
| 2550 BrowserAccessibilityManager* | 2555 BrowserAccessibilityManager* |
| 2551 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2556 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2552 RenderFrameHostImpl* rfh = GetMainFrame(); | 2557 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2553 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; | 2558 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; |
| (...skipping 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5408 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); | 5413 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); |
| 5409 if (!render_view_host) | 5414 if (!render_view_host) |
| 5410 continue; | 5415 continue; |
| 5411 render_view_host_set.insert(render_view_host); | 5416 render_view_host_set.insert(render_view_host); |
| 5412 } | 5417 } |
| 5413 for (RenderViewHost* render_view_host : render_view_host_set) | 5418 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5414 render_view_host->OnWebkitPreferencesChanged(); | 5419 render_view_host->OnWebkitPreferencesChanged(); |
| 5415 } | 5420 } |
| 5416 | 5421 |
| 5417 } // namespace content | 5422 } // namespace content |
| OLD | NEW |