OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/app/android/tab_control_feature_android.h" | 5 #include "blimp/client/app/android/tab_control_feature_android.h" |
6 | 6 |
7 #include "blimp/client/app/android/blimp_client_session_android.h" | 7 #include "blimp/client/app/android/blimp_client_session_android.h" |
8 #include "blimp/client/feature/tab_control_feature.h" | 8 #include "blimp/client/feature/tab_control_feature.h" |
9 #include "jni/TabControlFeature_jni.h" | 9 #include "jni/TabControlFeature_jni.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
11 | 11 |
| 12 using base::android::JavaParamRef; |
| 13 |
12 namespace blimp { | 14 namespace blimp { |
13 namespace client { | 15 namespace client { |
14 | 16 |
15 static jlong Init(JNIEnv* env, | 17 static jlong Init(JNIEnv* env, |
16 const JavaParamRef<jobject>& jobj, | 18 const JavaParamRef<jobject>& jobj, |
17 const JavaParamRef<jobject>& blimp_client_session) { | 19 const JavaParamRef<jobject>& blimp_client_session) { |
18 BlimpClientSession* client_session = | 20 BlimpClientSession* client_session = |
19 BlimpClientSessionAndroid::FromJavaObject(env, | 21 BlimpClientSessionAndroid::FromJavaObject(env, |
20 blimp_client_session.obj()); | 22 blimp_client_session.obj()); |
21 | 23 |
(...skipping 27 matching lines...) Expand all Loading... |
49 JNIEnv* env, | 51 JNIEnv* env, |
50 const JavaParamRef<jobject>& jobj, | 52 const JavaParamRef<jobject>& jobj, |
51 jint width, | 53 jint width, |
52 jint height, | 54 jint height, |
53 jfloat dp_to_px) { | 55 jfloat dp_to_px) { |
54 tab_control_feature_->SetSizeAndScale(gfx::Size(width, height), dp_to_px); | 56 tab_control_feature_->SetSizeAndScale(gfx::Size(width, height), dp_to_px); |
55 } | 57 } |
56 | 58 |
57 } // namespace client | 59 } // namespace client |
58 } // namespace blimp | 60 } // namespace blimp |
OLD | NEW |