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..6ff4a47395faa7386bc91ccdebc6e54682b8e69a |
| --- /dev/null |
| +++ b/remoting/android/java/src/org/chromium/chromoting/VRDesktop.java |
| @@ -0,0 +1,29 @@ |
| +// 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; |
| + |
| +/** |
| + * VR Remote Desktop activity. |
| + */ |
| +public class VRDesktop extends CardboardActivity { |
|
Sergey Ulanov
2015/07/13 19:26:19
I don't like this name. Style guide discourages ab
shichengfeng
2015/07/13 19:51:13
Done.
|
| + @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. |
| + cardboardView.setRenderer(new VRDesktopRenderer(this)); |
| + |
| + // Associate the cardboardView with this activity. |
| + setCardboardView(cardboardView); |
| + } |
| +} |