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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/VRDesktop.java

Issue 1231153002: Add VR desktop activity structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add vr desktop basic structure Created 5 years, 5 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chromoting;
6
7 import android.os.Bundle;
8
9 import com.google.vrtoolkit.cardboard.CardboardActivity;
10 import com.google.vrtoolkit.cardboard.CardboardView;
11
12 /**
13 * 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.
14 */
15 public class VRDesktop extends CardboardActivity {
16 @Override
17 public void onCreate(Bundle savedInstanceState) {
18 super.onCreate(savedInstanceState);
19 setContentView(R.layout.vr_desktop);
20
21 CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboar d_view);
22 // 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.
23 cardboardView.setRenderer(new VRDesktopRenderer(this));
24 // 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.
25 setCardboardView(cardboardView);
26 }
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698