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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Called when our WebContents have been hidden. Usually a sign that something | 122 // Called when our WebContents have been hidden. Usually a sign that something |
123 // like another tab placed in front of it. | 123 // like another tab placed in front of it. |
124 void ContentWasHidden(); | 124 void ContentWasHidden(); |
125 void ContentWasShown(); | 125 void ContentWasShown(); |
126 | 126 |
127 void ContentSurfaceChanged(jobject surface); | 127 void ContentSurfaceChanged(jobject surface); |
128 void GvrDelegateReady(); | 128 void GvrDelegateReady(); |
129 void AppButtonGesturePerformed(UiInterface::Direction direction); | 129 void AppButtonGesturePerformed(UiInterface::Direction direction); |
130 void AppButtonPressed(); | 130 void AppButtonPressed(); |
131 | 131 |
| 132 void OnPhysicalBackingSizeChanged( |
| 133 JNIEnv* env, |
| 134 const base::android::JavaParamRef<jobject>& obj, |
| 135 const base::android::JavaParamRef<jobject>& jweb_contents, |
| 136 jint width, |
| 137 jint height); |
132 void ContentPhysicalBoundsChanged( | 138 void ContentPhysicalBoundsChanged( |
133 JNIEnv* env, | 139 JNIEnv* env, |
134 const base::android::JavaParamRef<jobject>& object, | 140 const base::android::JavaParamRef<jobject>& object, |
135 jint width, | 141 jint width, |
136 jint height, | 142 jint height, |
137 jfloat dpr); | 143 jfloat dpr); |
138 | 144 |
139 // Perform a UI action triggered by the javascript API. | 145 // Perform a UI action triggered by the javascript API. |
140 void DoUiAction(const UiAction action, | 146 void DoUiAction(const UiAction action, |
141 const base::DictionaryValue* arguments); | 147 const base::DictionaryValue* arguments); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 226 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
221 | 227 |
222 DISALLOW_COPY_AND_ASSIGN(VrShell); | 228 DISALLOW_COPY_AND_ASSIGN(VrShell); |
223 }; | 229 }; |
224 | 230 |
225 bool RegisterVrShell(JNIEnv* env); | 231 bool RegisterVrShell(JNIEnv* env); |
226 | 232 |
227 } // namespace vr_shell | 233 } // namespace vr_shell |
228 | 234 |
229 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 235 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
OLD | NEW |