| 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class VrWebContentsObserver; | 42 class VrWebContentsObserver; |
| 43 | 43 |
| 44 enum UiAction { | 44 enum UiAction { |
| 45 HISTORY_BACK = 0, | 45 HISTORY_BACK = 0, |
| 46 HISTORY_FORWARD, | 46 HISTORY_FORWARD, |
| 47 RELOAD, | 47 RELOAD, |
| 48 ZOOM_OUT, | 48 ZOOM_OUT, |
| 49 ZOOM_IN, | 49 ZOOM_IN, |
| 50 RELOAD_UI, | 50 RELOAD_UI, |
| 51 KEY_EVENT, | 51 KEY_EVENT, |
| 52 LOAD_URL, |
| 53 OMNIBOX_CONTENT, |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 class VrMetricsHelper; | 56 class VrMetricsHelper; |
| 55 | 57 |
| 56 // The native instance of the Java VrShell. This class is not threadsafe and | 58 // The native instance of the Java VrShell. This class is not threadsafe and |
| 57 // must only be used on the UI thread. | 59 // must only be used on the UI thread. |
| 58 class VrShell : public device::GvrDelegate, content::WebContentsObserver { | 60 class VrShell : public device::GvrDelegate, content::WebContentsObserver { |
| 59 public: | 61 public: |
| 60 VrShell(JNIEnv* env, jobject obj, | 62 VrShell(JNIEnv* env, jobject obj, |
| 61 content::WebContents* main_contents, | 63 content::WebContents* main_contents, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 174 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 173 | 175 |
| 174 DISALLOW_COPY_AND_ASSIGN(VrShell); | 176 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 175 }; | 177 }; |
| 176 | 178 |
| 177 bool RegisterVrShell(JNIEnv* env); | 179 bool RegisterVrShell(JNIEnv* env); |
| 178 | 180 |
| 179 } // namespace vr_shell | 181 } // namespace vr_shell |
| 180 | 182 |
| 181 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 183 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |