Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 * VR Remote Desktop activity | |
|
Lambros
2015/07/11 00:32:13
nit: End sentence with period.
shichengfeng
2015/07/13 16:25:17
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 | |
| 23 // Associate a CardboardView.StereoRenderer with cardboardView. | |
| 24 cardboardView.setRenderer(new VRDesktopRenderer(this)); | |
| 25 | |
| 26 // Associate the cardboardView with this activity. | |
| 27 setCardboardView(cardboardView); | |
| 28 } | |
| 29 } | |
| OLD | NEW |