Chromium Code Reviews| Index: remoting/android/java/src/org/chromium/chromoting/VRDesktop.java |
| diff --git a/remoting/android/java/src/org/chromium/chromoting/VRDesktop.java b/remoting/android/java/src/org/chromium/chromoting/VRDesktop.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fc1241d45753c117be46efa6bb15a70c79e70ce8 |
| --- /dev/null |
| +++ b/remoting/android/java/src/org/chromium/chromoting/VRDesktop.java |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.chromoting; |
| + |
| +import android.os.Bundle; |
| + |
| +import com.google.vrtoolkit.cardboard.CardboardActivity; |
| +import com.google.vrtoolkit.cardboard.CardboardView; |
| + |
| +/** |
| + * A simple screen that does nothing except display a VR DesktopView and notify it of rotations. |
|
Lambros
2015/07/10 22:25:03
"screen that does nothing"?
That might be true cur
shichengfeng
2015/07/10 23:32:22
Done.
|
| + */ |
| +public class VRDesktop extends CardboardActivity { |
| + @Override |
| + public void onCreate(Bundle savedInstanceState) { |
| + super.onCreate(savedInstanceState); |
| + setContentView(R.layout.vr_desktop); |
| + |
| + CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view); |
| + // Associate a CardboardView.StereoRenderer with cardboardView. |
|
Lambros
2015/07/10 22:25:03
Blank line before comment.
shichengfeng
2015/07/10 23:32:22
Done.
|
| + cardboardView.setRenderer(new VRDesktopRenderer(this)); |
| + // Associate the cardboardView with this activity. |
|
Lambros
2015/07/10 22:25:03
Blank line before comment.
shichengfeng
2015/07/10 23:32:22
Done.
|
| + setCardboardView(cardboardView); |
| + } |
| +} |