| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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.vr_shell; | 5 package org.chromium.chrome.browser.vr_shell; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Abstracts away the NonPresentingGvrContext class, which may or may not be pre
sent at runtime | 8 * Abstracts away the NonPresentingGvrContext class, which may or may not be pre
sent at runtime |
| 9 * depending on compile flags. | 9 * depending on compile flags. |
| 10 */ | 10 */ |
| 11 public interface NonPresentingGvrContext { | 11 public interface NonPresentingGvrContext { |
| 12 /** | 12 /** |
| 13 * Returns the native gvr context. | 13 * Returns the native gvr context. |
| 14 */ | 14 */ |
| 15 long getNativeGvrContext(); | 15 long getNativeGvrContext(); |
| 16 | 16 |
| 17 /** | 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. | 18 * Shutdown the native gvr context. |
| 29 */ | 19 */ |
| 30 void shutdown(); | 20 void shutdown(); |
| 31 } | 21 } |
| OLD | NEW |