OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 3774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3785 // TODO(kenrb): Need to figure out how to do this better. Should | 3785 // TODO(kenrb): Need to figure out how to do this better. Should |
3786 // VisibilityState remain a page-level concept or move to frames? | 3786 // VisibilityState remain a page-level concept or move to frames? |
3787 // The semantics of 'Show' might have to change here. | 3787 // The semantics of 'Show' might have to change here. |
3788 if (render_widget_) { | 3788 if (render_widget_) { |
3789 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> | 3789 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> |
3790 setVisibilityState(blink::WebPageVisibilityStateVisible, false); | 3790 setVisibilityState(blink::WebPageVisibilityStateVisible, false); |
3791 } | 3791 } |
3792 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); | 3792 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); |
3793 } | 3793 } |
3794 | 3794 |
3795 void RenderFrameImpl::WidgetWillClose() { | |
3796 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WidgetWillClose()); | |
3797 } | |
3798 | |
3799 bool RenderFrameImpl::IsHidden() { | 3795 bool RenderFrameImpl::IsHidden() { |
3800 return GetRenderWidget()->is_hidden(); | 3796 return GetRenderWidget()->is_hidden(); |
3801 } | 3797 } |
3802 | 3798 |
3803 // Tell the embedding application that the URL of the active page has changed. | 3799 // Tell the embedding application that the URL of the active page has changed. |
3804 void RenderFrameImpl::SendDidCommitProvisionalLoad( | 3800 void RenderFrameImpl::SendDidCommitProvisionalLoad( |
3805 blink::WebFrame* frame, | 3801 blink::WebFrame* frame, |
3806 blink::WebHistoryCommitType commit_type) { | 3802 blink::WebHistoryCommitType commit_type) { |
3807 DCHECK(!frame_ || frame_ == frame); | 3803 DCHECK(!frame_ || frame_ == frame); |
3808 WebDataSource* ds = frame->dataSource(); | 3804 WebDataSource* ds = frame->dataSource(); |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4696 | 4692 |
4697 #if defined(ENABLE_BROWSER_CDMS) | 4693 #if defined(ENABLE_BROWSER_CDMS) |
4698 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 4694 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
4699 if (!cdm_manager_) | 4695 if (!cdm_manager_) |
4700 cdm_manager_ = new RendererCdmManager(this); | 4696 cdm_manager_ = new RendererCdmManager(this); |
4701 return cdm_manager_; | 4697 return cdm_manager_; |
4702 } | 4698 } |
4703 #endif // defined(ENABLE_BROWSER_CDMS) | 4699 #endif // defined(ENABLE_BROWSER_CDMS) |
4704 | 4700 |
4705 } // namespace content | 4701 } // namespace content |
OLD | NEW |