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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1765 color_chooser_->End(); | 1765 color_chooser_->End(); |
1766 } | 1766 } |
1767 | 1767 |
1768 void WebContentsImpl::OnSetSelectedColorInColorChooser(int color_chooser_id, | 1768 void WebContentsImpl::OnSetSelectedColorInColorChooser(int color_chooser_id, |
1769 const SkColor& color) { | 1769 const SkColor& color) { |
1770 if (color_chooser_ && | 1770 if (color_chooser_ && |
1771 color_chooser_id == color_chooser_->identifier()) | 1771 color_chooser_id == color_chooser_->identifier()) |
1772 color_chooser_->SetSelectedColor(color); | 1772 color_chooser_->SetSelectedColor(color); |
1773 } | 1773 } |
1774 | 1774 |
1775 void TabContents::OnPepperPluginHung(int plugin_child_id, | 1775 void WebContentsImpl::OnPepperPluginHung(int plugin_child_id, |
Avi (use Gerrit)
2012/04/13 21:19:58
hahahahaha
| |
1776 const FilePath& path, | 1776 const FilePath& path, |
1777 bool is_hung) { | 1777 bool is_hung) { |
1778 if (delegate_) | 1778 if (delegate_) |
1779 delegate_->PluginHungStatusChanged(this, plugin_child_id, path, is_hung); | 1779 delegate_->PluginHungStatusChanged(this, plugin_child_id, path, is_hung); |
1780 } | 1780 } |
1781 | 1781 |
1782 // Notifies the RenderWidgetHost instance about the fact that the page is | 1782 // Notifies the RenderWidgetHost instance about the fact that the page is |
1783 // loading, or done loading and calls the base implementation. | 1783 // loading, or done loading and calls the base implementation. |
1784 void WebContentsImpl::SetIsLoading(bool is_loading, | 1784 void WebContentsImpl::SetIsLoading(bool is_loading, |
1785 LoadNotificationDetails* details) { | 1785 LoadNotificationDetails* details) { |
1786 if (is_loading == is_loading_) | 1786 if (is_loading == is_loading_) |
1787 return; | 1787 return; |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2623 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2623 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2624 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2624 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
2625 // Can be NULL during tests. | 2625 // Can be NULL during tests. |
2626 if (rwh_view) | 2626 if (rwh_view) |
2627 rwh_view->SetSize(GetView()->GetContainerSize()); | 2627 rwh_view->SetSize(GetView()->GetContainerSize()); |
2628 } | 2628 } |
2629 | 2629 |
2630 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { | 2630 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { |
2631 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2631 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
2632 } | 2632 } |
OLD | NEW |