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 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3781 // TODO(kenrb): Need to figure out how to do this better. Should | 3781 // TODO(kenrb): Need to figure out how to do this better. Should |
3782 // VisibilityState remain a page-level concept or move to frames? | 3782 // VisibilityState remain a page-level concept or move to frames? |
3783 // The semantics of 'Show' might have to change here. | 3783 // The semantics of 'Show' might have to change here. |
3784 if (render_widget_) { | 3784 if (render_widget_) { |
3785 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> | 3785 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> |
3786 setVisibilityState(blink::WebPageVisibilityStateVisible, false); | 3786 setVisibilityState(blink::WebPageVisibilityStateVisible, false); |
3787 } | 3787 } |
3788 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); | 3788 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); |
3789 } | 3789 } |
3790 | 3790 |
| 3791 void RenderFrameImpl::WidgetWillClose() { |
| 3792 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WidgetWillClose()); |
| 3793 } |
| 3794 |
3791 bool RenderFrameImpl::IsHidden() { | 3795 bool RenderFrameImpl::IsHidden() { |
3792 return GetRenderWidget()->is_hidden(); | 3796 return GetRenderWidget()->is_hidden(); |
3793 } | 3797 } |
3794 | 3798 |
3795 // 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. |
3796 void RenderFrameImpl::SendDidCommitProvisionalLoad( | 3800 void RenderFrameImpl::SendDidCommitProvisionalLoad( |
3797 blink::WebFrame* frame, | 3801 blink::WebFrame* frame, |
3798 blink::WebHistoryCommitType commit_type) { | 3802 blink::WebHistoryCommitType commit_type) { |
3799 DCHECK(!frame_ || frame_ == frame); | 3803 DCHECK(!frame_ || frame_ == frame); |
3800 WebDataSource* ds = frame->dataSource(); | 3804 WebDataSource* ds = frame->dataSource(); |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4688 | 4692 |
4689 #if defined(ENABLE_BROWSER_CDMS) | 4693 #if defined(ENABLE_BROWSER_CDMS) |
4690 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 4694 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
4691 if (!cdm_manager_) | 4695 if (!cdm_manager_) |
4692 cdm_manager_ = new RendererCdmManager(this); | 4696 cdm_manager_ = new RendererCdmManager(this); |
4693 return cdm_manager_; | 4697 return cdm_manager_; |
4694 } | 4698 } |
4695 #endif // defined(ENABLE_BROWSER_CDMS) | 4699 #endif // defined(ENABLE_BROWSER_CDMS) |
4696 | 4700 |
4697 } // namespace content | 4701 } // namespace content |
OLD | NEW |