| 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 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 delegate_->HideValidationMessage(this); | 2219 delegate_->HideValidationMessage(this); |
| 2220 } | 2220 } |
| 2221 | 2221 |
| 2222 void WebContentsImpl::OnMoveValidationMessage( | 2222 void WebContentsImpl::OnMoveValidationMessage( |
| 2223 const gfx::Rect& anchor_in_root_view) { | 2223 const gfx::Rect& anchor_in_root_view) { |
| 2224 if (delegate_) | 2224 if (delegate_) |
| 2225 delegate_->MoveValidationMessage(this, anchor_in_root_view); | 2225 delegate_->MoveValidationMessage(this, anchor_in_root_view); |
| 2226 } | 2226 } |
| 2227 | 2227 |
| 2228 void WebContentsImpl::SendScreenRects() { | 2228 void WebContentsImpl::SendScreenRects() { |
| 2229 RenderWidgetHostImpl::From(GetRenderViewHost()->GetWidget()) | 2229 for (FrameTreeNode* node : frame_tree_.Nodes()) { |
| 2230 ->SendScreenRects(); | 2230 if (node->current_frame_host()->GetRenderWidgetHost()) |
| 2231 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects(); |
| 2232 } |
| 2231 | 2233 |
| 2232 RenderWidgetHostViewBase* rwhv = | 2234 RenderWidgetHostViewBase* rwhv = |
| 2233 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); | 2235 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); |
| 2234 if (rwhv) { | 2236 if (rwhv) { |
| 2235 SendPageMessage(new PageMsg_UpdateWindowScreenRect( | 2237 SendPageMessage(new PageMsg_UpdateWindowScreenRect( |
| 2236 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); | 2238 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); |
| 2237 } | 2239 } |
| 2238 | 2240 |
| 2239 if (browser_plugin_embedder_) | 2241 if (browser_plugin_embedder_) |
| 2240 browser_plugin_embedder_->DidSendScreenRects(); | 2242 browser_plugin_embedder_->DidSendScreenRects(); |
| (...skipping 2598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4839 else | 4841 else |
| 4840 WasHidden(); | 4842 WasHidden(); |
| 4841 } | 4843 } |
| 4842 | 4844 |
| 4843 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 4845 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 4844 JavaScriptDialogManager* dialog_manager) { | 4846 JavaScriptDialogManager* dialog_manager) { |
| 4845 dialog_manager_ = dialog_manager; | 4847 dialog_manager_ = dialog_manager; |
| 4846 } | 4848 } |
| 4847 | 4849 |
| 4848 } // namespace content | 4850 } // namespace content |
| OLD | NEW |