| 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2473 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects(); | 2473 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects(); |
| 2474 } | 2474 } |
| 2475 | 2475 |
| 2476 RenderWidgetHostViewBase* rwhv = | 2476 RenderWidgetHostViewBase* rwhv = |
| 2477 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); | 2477 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); |
| 2478 if (rwhv) { | 2478 if (rwhv) { |
| 2479 SendPageMessage(new PageMsg_UpdateWindowScreenRect( | 2479 SendPageMessage(new PageMsg_UpdateWindowScreenRect( |
| 2480 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); | 2480 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); |
| 2481 } | 2481 } |
| 2482 | 2482 |
| 2483 if (browser_plugin_embedder_) | 2483 if (browser_plugin_embedder_ && !is_being_destroyed_) |
| 2484 browser_plugin_embedder_->DidSendScreenRects(); | 2484 browser_plugin_embedder_->DidSendScreenRects(); |
| 2485 } | 2485 } |
| 2486 | 2486 |
| 2487 void WebContentsImpl::OnFirstPaintAfterLoad( | 2487 void WebContentsImpl::OnFirstPaintAfterLoad( |
| 2488 RenderWidgetHostImpl* render_widget_host) { | 2488 RenderWidgetHostImpl* render_widget_host) { |
| 2489 for (auto& observer : observers_) | 2489 for (auto& observer : observers_) |
| 2490 observer.DidFirstPaintAfterLoad(render_widget_host); | 2490 observer.DidFirstPaintAfterLoad(render_widget_host); |
| 2491 } | 2491 } |
| 2492 | 2492 |
| 2493 TextInputManager* WebContentsImpl::GetTextInputManager() { | 2493 TextInputManager* WebContentsImpl::GetTextInputManager() { |
| (...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5281 dialog_manager_ = dialog_manager; | 5281 dialog_manager_ = dialog_manager; |
| 5282 } | 5282 } |
| 5283 | 5283 |
| 5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5285 auto it = binding_sets_.find(interface_name); | 5285 auto it = binding_sets_.find(interface_name); |
| 5286 if (it != binding_sets_.end()) | 5286 if (it != binding_sets_.end()) |
| 5287 binding_sets_.erase(it); | 5287 binding_sets_.erase(it); |
| 5288 } | 5288 } |
| 5289 | 5289 |
| 5290 } // namespace content | 5290 } // namespace content |
| OLD | NEW |