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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: rebased & ViewAndroud::Bounds Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
index 792c49c8ba634cf2e3ac98fbeb57bc6dcfc99cec..195fc48e72914d0892f5bec438a064437cde22fa 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
@@ -78,7 +78,7 @@ import org.chromium.content_public.browser.LoadUrlParams;
import org.chromium.content_public.browser.WebContents;
import org.chromium.content_public.common.Referrer;
import org.chromium.ui.base.PageTransition;
-import org.chromium.ui.base.WindowAndroid;
+import org.chromium.ui.base.ViewRoot;
/**
* The activity for custom tabs. It will be launched on top of a client's task.
@@ -150,9 +150,9 @@ public class CustomTabActivity extends ChromeActivity {
private final BrowserStateBrowserControlsVisibilityDelegate mVisibilityDelegate;
public CustomTabCreator(
- ChromeActivity activity, WindowAndroid nativeWindow, boolean incognito,
+ ChromeActivity activity, ViewRoot viewRoot, boolean incognito,
boolean supportsUrlBarHiding, boolean isOpenedByChrome) {
- super(activity, nativeWindow, incognito);
+ super(activity, viewRoot, incognito);
mSupportsUrlBarHiding = supportsUrlBarHiding;
mIsOpenedByChrome = isOpenedByChrome;
mVisibilityDelegate = activity.getFullscreenManager().getBrowserVisibilityDelegate();
@@ -368,11 +368,11 @@ public class CustomTabActivity extends ChromeActivity {
protected Pair<CustomTabCreator, CustomTabCreator> createTabCreators() {
return Pair.create(
new CustomTabCreator(
- this, getWindowAndroid(), false,
+ this, getViewRoot(), false,
mIntentDataProvider.shouldEnableUrlBarHiding(),
mIntentDataProvider.isOpenedByChrome()),
new CustomTabCreator(
- this, getWindowAndroid(), true,
+ this, getViewRoot(), true,
mIntentDataProvider.shouldEnableUrlBarHiding(),
mIntentDataProvider.isOpenedByChrome()));
}
@@ -511,7 +511,7 @@ public class CustomTabActivity extends ChromeActivity {
if (referrer != null) referrerUrl = referrer.getUrl();
}
Tab tab = new Tab(TabIdManager.getInstance().generateValidId(Tab.INVALID_TAB_ID),
- Tab.INVALID_TAB_ID, false, this, getWindowAndroid(),
+ Tab.INVALID_TAB_ID, false, this, getViewRoot(),
TabLaunchType.FROM_EXTERNAL_APP, null, null);
tab.setAppAssociatedWith(customTabsConnection.getClientPackageNameForSession(mSession));

Powered by Google App Engine
This is Rietveld 408576698