| Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java
|
| index e95ee912e52449ce92d0fcf7ebf6fddb21521273..ea60a2911e460ffdf5a86f9064e2a17d8fec81b5 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java
|
| @@ -5,6 +5,8 @@
|
| package org.chromium.chrome.browser.vr_shell;
|
|
|
| import android.app.PendingIntent;
|
| +import android.content.ComponentName;
|
| +import android.content.Intent;
|
|
|
| /**
|
| * Abstract away DaydreamImpl class, which may or may not be present at runtime depending on compile
|
| @@ -22,7 +24,23 @@ public interface VrDaydreamApi {
|
| void unregisterDaydreamIntent();
|
|
|
| /**
|
| - * Close the private api.
|
| + * Create an Intent to launch a VR activity with the given component name.
|
| */
|
| - void close();
|
| + Intent createVrIntent(final ComponentName componentName);
|
| +
|
| + /**
|
| + * Launch the given Intent in VR mode.
|
| + */
|
| + void launchInVr(final Intent intent);
|
| +
|
| + /**
|
| + * @param requestCode The requestCode used by startActivityForResult.
|
| + * @param intent The data passed to VrCore as part of the exit request.
|
| + */
|
| + void exitFromVr(int requestCode, final Intent intent);
|
| +
|
| + /**
|
| + * Sets VR Mode to |enabled|.
|
| + */
|
| + void setVrModeEnabled(boolean enabled);
|
| }
|
|
|