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

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

Issue 2258563003: Added features to BlimpClientContext and BlimpContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ime_feature_move
Patch Set: Register features Created 4 years, 4 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/tab_control_feature.h" 9 #include "blimp/client/core/contents/tab_control_feature.h"
10 #include "blimp/client/public/contents/blimp_contents_observer.h" 10 #include "blimp/client/public/contents/blimp_contents_observer.h"
11 11
12 #if defined(OS_ANDROID) 12 #if defined(OS_ANDROID)
13 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h" 13 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
14 #endif // OS_ANDROID 14 #endif // OS_ANDROID
15 15
16 namespace blimp { 16 namespace blimp {
17 namespace client { 17 namespace client {
18 18
19 namespace { 19 namespace {
20 20
21 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
22 const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android"; 22 const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android";
23 #endif // OS_ANDROID 23 #endif // OS_ANDROID
24 } 24 }
25 25
26 BlimpContentsImpl::BlimpContentsImpl(int id, 26 BlimpContentsImpl::BlimpContentsImpl(int id,
27 ImeFeature* ime_feature,
28 NavigationFeature* navigation_feature,
27 TabControlFeature* tab_control_feature) 29 TabControlFeature* tab_control_feature)
28 : navigation_controller_(this, nullptr), 30 : navigation_controller_(this, navigation_feature),
29 id_(id), 31 id_(id),
30 tab_control_feature_(tab_control_feature) {} 32 tab_control_feature_(tab_control_feature) {}
31 33
32 BlimpContentsImpl::~BlimpContentsImpl() { 34 BlimpContentsImpl::~BlimpContentsImpl() {
33 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying()); 35 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying());
34 } 36 }
35 37
36 #if defined(OS_ANDROID) 38 #if defined(OS_ANDROID)
37 39
38 base::android::ScopedJavaLocalRef<jobject> BlimpContentsImpl::GetJavaObject() { 40 base::android::ScopedJavaLocalRef<jobject> BlimpContentsImpl::GetJavaObject() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 OnNavigationStateChanged()); 75 OnNavigationStateChanged());
74 } 76 }
75 77
76 void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size, 78 void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size,
77 float device_pixel_ratio) { 79 float device_pixel_ratio) {
78 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio); 80 tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio);
79 } 81 }
80 82
81 } // namespace client 83 } // namespace client
82 } // namespace blimp 84 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_impl.h ('k') | blimp/client/core/contents/blimp_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698