OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/core/contents/blimp_contents_impl.h" | 5 #include "blimp/client/core/contents/blimp_contents_impl.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/supports_user_data.h" | 8 #include "base/supports_user_data.h" |
9 #include "blimp/client/core/contents/blimp_contents_view.h" | 9 #include "blimp/client/core/contents/blimp_contents_view.h" |
10 #include "blimp/client/core/contents/tab_control_feature.h" | 10 #include "blimp/client/core/contents/tab_control_feature.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 bool BlimpContentsImpl::HasObserver(BlimpContentsObserver* observer) { | 99 bool BlimpContentsImpl::HasObserver(BlimpContentsObserver* observer) { |
100 return observers_.HasObserver(observer); | 100 return observers_.HasObserver(observer); |
101 } | 101 } |
102 | 102 |
103 void BlimpContentsImpl::OnNavigationStateChanged() { | 103 void BlimpContentsImpl::OnNavigationStateChanged() { |
104 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, | 104 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, |
105 OnNavigationStateChanged()); | 105 OnNavigationStateChanged()); |
106 } | 106 } |
107 | 107 |
| 108 void BlimpContentsImpl::OnLoadingStateChanged(bool loading) { |
| 109 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, |
| 110 OnLoadingStateChanged(loading)); |
| 111 } |
| 112 |
108 void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size, | 113 void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size, |
109 float device_pixel_ratio) { | 114 float device_pixel_ratio) { |
110 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio); | 115 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio); |
111 } | 116 } |
112 | 117 |
113 BlimpContentsView* BlimpContentsImpl::GetBlimpContentsView() { | 118 BlimpContentsView* BlimpContentsImpl::GetBlimpContentsView() { |
114 return blimp_contents_view_.get(); | 119 return blimp_contents_view_.get(); |
115 } | 120 } |
116 | 121 |
117 } // namespace client | 122 } // namespace client |
118 } // namespace blimp | 123 } // namespace blimp |
OLD | NEW |