| 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 3771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3782 // TODO(kenrb): Need to figure out how to do this better. Should | 3782 // TODO(kenrb): Need to figure out how to do this better. Should |
| 3783 // VisibilityState remain a page-level concept or move to frames? | 3783 // VisibilityState remain a page-level concept or move to frames? |
| 3784 // The semantics of 'Show' might have to change here. | 3784 // The semantics of 'Show' might have to change here. |
| 3785 if (render_widget_) { | 3785 if (render_widget_) { |
| 3786 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> | 3786 static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())-> |
| 3787 setVisibilityState(blink::WebPageVisibilityStateVisible, false); | 3787 setVisibilityState(blink::WebPageVisibilityStateVisible, false); |
| 3788 } | 3788 } |
| 3789 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); | 3789 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown()); |
| 3790 } | 3790 } |
| 3791 | 3791 |
| 3792 void RenderFrameImpl::WidgetWillClose() { |
| 3793 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WidgetWillClose()); |
| 3794 } |
| 3795 |
| 3792 bool RenderFrameImpl::IsHidden() { | 3796 bool RenderFrameImpl::IsHidden() { |
| 3793 return GetRenderWidget()->is_hidden(); | 3797 return GetRenderWidget()->is_hidden(); |
| 3794 } | 3798 } |
| 3795 | 3799 |
| 3796 // Tell the embedding application that the URL of the active page has changed. | 3800 // Tell the embedding application that the URL of the active page has changed. |
| 3797 void RenderFrameImpl::SendDidCommitProvisionalLoad( | 3801 void RenderFrameImpl::SendDidCommitProvisionalLoad( |
| 3798 blink::WebFrame* frame, | 3802 blink::WebFrame* frame, |
| 3799 blink::WebHistoryCommitType commit_type) { | 3803 blink::WebHistoryCommitType commit_type) { |
| 3800 DCHECK(!frame_ || frame_ == frame); | 3804 DCHECK(!frame_ || frame_ == frame); |
| 3801 WebDataSource* ds = frame->dataSource(); | 3805 WebDataSource* ds = frame->dataSource(); |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4701 #elif defined(ENABLE_BROWSER_CDMS) | 4705 #elif defined(ENABLE_BROWSER_CDMS) |
| 4702 cdm_manager_, | 4706 cdm_manager_, |
| 4703 #endif | 4707 #endif |
| 4704 this); | 4708 this); |
| 4705 } | 4709 } |
| 4706 | 4710 |
| 4707 return cdm_factory_; | 4711 return cdm_factory_; |
| 4708 } | 4712 } |
| 4709 | 4713 |
| 4710 } // namespace content | 4714 } // namespace content |
| OLD | NEW |