OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.app.Activity; | 9 import android.app.Activity; |
10 import android.app.SearchManager; | 10 import android.app.SearchManager; |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 }; | 625 }; |
626 | 626 |
627 if (mAssistStatusHandler != null) { | 627 if (mAssistStatusHandler != null) { |
628 mAssistStatusHandler.setTabModelSelector(mTabModelSelector); | 628 mAssistStatusHandler.setTabModelSelector(mTabModelSelector); |
629 } | 629 } |
630 | 630 |
631 mTabModelsInitialized = true; | 631 mTabModelsInitialized = true; |
632 } | 632 } |
633 | 633 |
634 /** | 634 /** |
| 635 * @return Whether this activity should automatically present WebVR content
in fullscreen |
| 636 * binocular rendering mode. Normally, presentation needs a user ges
ture. |
| 637 */ |
| 638 public boolean shouldAutoPresent() { |
| 639 return false; |
| 640 } |
| 641 |
| 642 /** |
635 * @return The {@link TabModelSelector} owned by this {@link ChromeActivity}
. | 643 * @return The {@link TabModelSelector} owned by this {@link ChromeActivity}
. |
636 */ | 644 */ |
637 protected abstract TabModelSelector createTabModelSelector(); | 645 protected abstract TabModelSelector createTabModelSelector(); |
638 | 646 |
639 /** | 647 /** |
640 * @return The {@link org.chromium.chrome.browser.tabmodel.TabCreatorManager
.TabCreator}s owned | 648 * @return The {@link org.chromium.chrome.browser.tabmodel.TabCreatorManager
.TabCreator}s owned |
641 * by this {@link ChromeActivity}. The first item in the Pair is th
e normal model tab | 649 * by this {@link ChromeActivity}. The first item in the Pair is th
e normal model tab |
642 * creator, and the second is the tab creator for incognito tabs. | 650 * creator, and the second is the tab creator for incognito tabs. |
643 */ | 651 */ |
644 protected abstract Pair<? extends TabCreator, ? extends TabCreator> createTa
bCreators(); | 652 protected abstract Pair<? extends TabCreator, ? extends TabCreator> createTa
bCreators(); |
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 * draw over VR contents should be hidden in this call. | 2155 * draw over VR contents should be hidden in this call. |
2148 */ | 2156 */ |
2149 public void onEnterVr() {} | 2157 public void onEnterVr() {} |
2150 | 2158 |
2151 /** | 2159 /** |
2152 * Called when VR mode using this activity is exited. Any state set for VR s
hould be restored | 2160 * Called when VR mode using this activity is exited. Any state set for VR s
hould be restored |
2153 * in this call, including showing 2D UI that was hidden. | 2161 * in this call, including showing 2D UI that was hidden. |
2154 */ | 2162 */ |
2155 public void onExitVr() {} | 2163 public void onExitVr() {} |
2156 } | 2164 } |
OLD | NEW |