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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java

Issue 2399533002: Pull in vr_shell code for webvr (Closed)
Patch Set: fix android_clang_dbg_receipt error Created 4 years, 2 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/vr_shell/VrShell.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java
index 7d80a6ab6857cff96a7e5371ca75d139159e6e7f..e7e249988e4a093f026c62f900c65d0787419943 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java
@@ -12,7 +12,6 @@ import static android.opengl.GLES20.glGenTextures;
import static android.opengl.GLES20.glTexParameteri;
import android.app.Activity;
-import android.content.Context;
import android.graphics.SurfaceTexture;
import android.graphics.SurfaceTexture.OnFrameAvailableListener;
import android.opengl.GLES11Ext;
@@ -64,7 +63,7 @@ public class VrShell extends GvrLayout implements GLSurfaceView.Renderer, VrShel
private FrameListener mContentFrameListener;
private FrameListener mUiFrameListener;
- private ContentViewCoreContainer mContentViewCoreContainer;
+ private FrameLayout mContentViewCoreContainer;
// The tab that holds the main ContentViewCore.
private Tab mTab;
@@ -86,22 +85,16 @@ public class VrShell extends GvrLayout implements GLSurfaceView.Renderer, VrShel
private ContentViewCore mUiCVC;
private VrWindowAndroid mUiVrWindowAndroid;
- private class ContentViewCoreContainer extends FrameLayout {
- public ContentViewCoreContainer(Context context) {
- super(context);
- }
-
- @Override
- public boolean dispatchTouchEvent(MotionEvent event) {
- return true;
- }
- }
-
@UsedByReflection("VrShellDelegate.java")
public VrShell(Activity activity) {
super(activity);
mActivity = activity;
- mContentViewCoreContainer = new ContentViewCoreContainer(activity);
+ mContentViewCoreContainer = new FrameLayout(getContext()) {
+ @Override
+ public boolean dispatchTouchEvent(MotionEvent event) {
+ return true;
+ }
+ };
addView(mContentViewCoreContainer, 0, new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.MATCH_PARENT));
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698