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