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

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

Issue 2325893002: [blimp] Add support for having multiple tabs (Closed)
Patch Set: Add tablet and non-blimp support 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 15 matching lines...) Expand all
26 } 26 }
27 27
28 BlimpContentsImpl::BlimpContentsImpl( 28 BlimpContentsImpl::BlimpContentsImpl(
29 int id, 29 int id,
30 gfx::NativeWindow window, 30 gfx::NativeWindow window,
31 BlimpCompositorDependencies* compositor_deps, 31 BlimpCompositorDependencies* compositor_deps,
32 ImeFeature* ime_feature, 32 ImeFeature* ime_feature,
33 NavigationFeature* navigation_feature, 33 NavigationFeature* navigation_feature,
34 RenderWidgetFeature* render_widget_feature, 34 RenderWidgetFeature* render_widget_feature,
35 TabControlFeature* tab_control_feature) 35 TabControlFeature* tab_control_feature)
36 : navigation_controller_(this, navigation_feature), 36 : navigation_controller_(id, this, navigation_feature),
37 compositor_manager_(render_widget_feature, compositor_deps), 37 compositor_manager_(id, render_widget_feature, compositor_deps),
38 id_(id), 38 id_(id),
39 ime_feature_(ime_feature), 39 ime_feature_(ime_feature),
40 window_(window), 40 window_(window),
41 tab_control_feature_(tab_control_feature) { 41 tab_control_feature_(tab_control_feature) {
42 blimp_contents_view_ = 42 blimp_contents_view_ =
43 BlimpContentsView::Create(this, compositor_manager_.layer()); 43 BlimpContentsView::Create(this, compositor_manager_.layer());
44 ime_feature_->set_delegate(blimp_contents_view_->GetImeDelegate()); 44 ime_feature_->set_delegate(blimp_contents_view_->GetImeDelegate());
45 } 45 }
46 46
47 BlimpContentsImpl::~BlimpContentsImpl() { 47 BlimpContentsImpl::~BlimpContentsImpl() {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 float device_pixel_ratio) { 114 float device_pixel_ratio) {
115 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio); 115 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio);
116 } 116 }
117 117
118 BlimpContentsView* BlimpContentsImpl::GetBlimpContentsView() { 118 BlimpContentsView* BlimpContentsImpl::GetBlimpContentsView() {
119 return blimp_contents_view_.get(); 119 return blimp_contents_view_.get();
120 } 120 }
121 121
122 } // namespace client 122 } // namespace client
123 } // namespace blimp 123 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698