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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java

Issue 2888203003: Add separate feature flag for VR CCT browsing. (Closed)
Patch Set: Add histogram enums + add matching buildflags for descriptions. Created 3 years, 7 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 package org.chromium.chrome.browser.vr_shell; 5 package org.chromium.chrome.browser.vr_shell;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.ActivityManager; 8 import android.app.ActivityManager;
9 import android.app.PendingIntent; 9 import android.app.PendingIntent;
10 import android.content.BroadcastReceiver; 10 import android.content.BroadcastReceiver;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 return sInstance; 312 return sInstance;
313 } 313 }
314 314
315 private static boolean activitySupportsPresentation(Activity activity) { 315 private static boolean activitySupportsPresentation(Activity activity) {
316 return activity instanceof ChromeTabbedActivity || activity instanceof C ustomTabActivity 316 return activity instanceof ChromeTabbedActivity || activity instanceof C ustomTabActivity
317 || activity instanceof WebappActivity; 317 || activity instanceof WebappActivity;
318 } 318 }
319 319
320 private static boolean activitySupportsVrBrowsing(Activity activity) { 320 private static boolean activitySupportsVrBrowsing(Activity activity) {
321 return activity instanceof ChromeTabbedActivity || activity instanceof C ustomTabActivity; 321 if (activity instanceof ChromeTabbedActivity) return true;
322 if (activity instanceof CustomTabActivity) {
323 return ChromeFeatureList.isEnabled(ChromeFeatureList.VR_CUSTOM_TAB_B ROWSING);
324 }
325 return false;
322 } 326 }
323 327
324 /** 328 /**
325 * @return A helper class for creating VR-specific classes that may not be a vailable at compile 329 * @return A helper class for creating VR-specific classes that may not be a vailable at compile
326 * time. 330 * time.
327 */ 331 */
328 private static VrClassesWrapper getVrClassesWrapper() { 332 private static VrClassesWrapper getVrClassesWrapper() {
329 if (sInstance != null) return sInstance.mVrClassesWrapper; 333 if (sInstance != null) return sInstance.mVrClassesWrapper;
330 return createVrClassesWrapper(); 334 return createVrClassesWrapper();
331 } 335 }
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 private static native void nativeOnLibraryAvailable(); 994 private static native void nativeOnLibraryAvailable();
991 private native void nativeSetPresentResult(long nativeVrShellDelegate, boole an result); 995 private native void nativeSetPresentResult(long nativeVrShellDelegate, boole an result);
992 private native void nativeDisplayActivate(long nativeVrShellDelegate); 996 private native void nativeDisplayActivate(long nativeVrShellDelegate);
993 private native void nativeUpdateVSyncInterval(long nativeVrShellDelegate, lo ng timebaseNanos, 997 private native void nativeUpdateVSyncInterval(long nativeVrShellDelegate, lo ng timebaseNanos,
994 double intervalSeconds); 998 double intervalSeconds);
995 private native void nativeOnPause(long nativeVrShellDelegate); 999 private native void nativeOnPause(long nativeVrShellDelegate);
996 private native void nativeOnResume(long nativeVrShellDelegate); 1000 private native void nativeOnResume(long nativeVrShellDelegate);
997 private native void nativeUpdateNonPresentingContext(long nativeVrShellDeleg ate, long context); 1001 private native void nativeUpdateNonPresentingContext(long nativeVrShellDeleg ate, long context);
998 private native void nativeDestroy(long nativeVrShellDelegate); 1002 private native void nativeDestroy(long nativeVrShellDelegate);
999 } 1003 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698