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

Side by Side Diff: blimp/client/app/android/java/src/org/chromium/blimp/app/session/TabControlFeature.java

Issue 2493333002: Move Java Blimp shell code to app subpackage (Closed)
Patch Set: Merge branch 'refs/heads/master' into blimp-shell-integration Created 4 years, 1 month 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 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 package org.chromium.blimp.session; 5 package org.chromium.blimp.app.session;
6 6
7 import android.view.View; 7 import android.view.View;
8 8
9 import org.chromium.base.annotations.JNINamespace; 9 import org.chromium.base.annotations.JNINamespace;
10 10
11 /** 11 /**
12 * A Java representation of the native ControlFeature class. Provides easy acce ss for Java control 12 * A Java representation of the native ControlFeature class. Provides easy acce ss for Java control
13 * UI to interact with the native content-lite feature proxy and talk to the eng ine. 13 * UI to interact with the native content-lite feature proxy and talk to the eng ine.
14 */ 14 */
15 @JNINamespace("blimp::client") 15 @JNINamespace("blimp::client")
(...skipping 29 matching lines...) Expand all
45 } 45 }
46 46
47 if (mNativeTabControlFeatureAndroidPtr != 0) { 47 if (mNativeTabControlFeatureAndroidPtr != 0) {
48 nativeDestroy(mNativeTabControlFeatureAndroidPtr); 48 nativeDestroy(mNativeTabControlFeatureAndroidPtr);
49 mNativeTabControlFeatureAndroidPtr = 0; 49 mNativeTabControlFeatureAndroidPtr = 0;
50 } 50 }
51 } 51 }
52 52
53 // View.OnLayoutChangeListener implementation. 53 // View.OnLayoutChangeListener implementation.
54 @Override 54 @Override
55 public void onLayoutChange(View v, int left, int top, int right, int bottom, 55 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft,
56 int oldLeft, int oldTop, int oldRight, int oldBottom) { 56 int oldTop, int oldRight, int oldBottom) {
57 if (mNativeTabControlFeatureAndroidPtr == 0) return; 57 if (mNativeTabControlFeatureAndroidPtr == 0) return;
58 nativeOnContentAreaSizeChanged(mNativeTabControlFeatureAndroidPtr, right - left, 58 nativeOnContentAreaSizeChanged(mNativeTabControlFeatureAndroidPtr, right - left,
59 bottom - top, 59 bottom - top,
60 mContentAreaView.getContext().getResources().getDisplayMetrics() .density); 60 mContentAreaView.getContext().getResources().getDisplayMetrics() .density);
61 } 61 }
62 62
63 private native long nativeInit(BlimpClientSession blimpClientSession); 63 private native long nativeInit(BlimpClientSession blimpClientSession);
64 private native void nativeDestroy(long nativeTabControlFeatureAndroid); 64 private native void nativeDestroy(long nativeTabControlFeatureAndroid);
65 private native void nativeOnContentAreaSizeChanged( 65 private native void nativeOnContentAreaSizeChanged(
66 long nativeTabControlFeatureAndroid, int width, int height, float dp ToPx); 66 long nativeTabControlFeatureAndroid, int width, int height, float dp ToPx);
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698