OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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.chrome.browser.vr_shell; |
| 6 |
| 7 /** |
| 8 * Abstracts away the NonPresentingGvrContext class, which may or may not be pre
sent at runtime |
| 9 * depending on compile flags. |
| 10 */ |
| 11 public interface NonPresentingGvrContextInterface { |
| 12 /** |
| 13 * Returns the native gvr context. |
| 14 */ |
| 15 long getNativeGvrContext(); |
| 16 |
| 17 /** |
| 18 * Must be called when activity resumes. |
| 19 */ |
| 20 void resume(); |
| 21 |
| 22 /** |
| 23 * Must be called when activity pauses. |
| 24 */ |
| 25 void pause(); |
| 26 |
| 27 /** |
| 28 * Shutdown the native gvr context. |
| 29 */ |
| 30 void shutdown(); |
| 31 } |
OLD | NEW |