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