Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: blimp/client/core/contents/blimp_contents_impl.cc

Issue 2300103004: Expose loading state from Blimp to Tab (Closed)
Patch Set: Added test! Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_impl.h ('k') | blimp/client/core/contents/blimp_navigation_controller_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698