Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / android / java / src / org / chromium / chromoting / CardboardDesktopActivity.java
blob3843fe6414ecd091ce72994ada37dc43e7c3ff4c
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.
5 package org.chromium.chromoting;
7 import android.os.Bundle;
9 import com.google.vrtoolkit.cardboard.CardboardActivity;
10 import com.google.vrtoolkit.cardboard.CardboardView;
12 /**
13 * Virtual desktop activity for Cardboard.
15 public class CardboardDesktopActivity extends CardboardActivity {
16 @Override
17 public void onCreate(Bundle savedInstanceState) {
18 super.onCreate(savedInstanceState);
19 setContentView(R.layout.cardboard_desktop);
21 CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
23 // Associate a CardboardView.StereoRenderer with cardboardView.
24 cardboardView.setRenderer(new CardboardDesktopRenderer(this));
26 // Associate the cardboardView with this activity.
27 setCardboardView(cardboardView);