Index: chrome/browser/android/vr_shell/vr_shell.h |
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h |
index c5fc1b7d55959b062303bff24e218587387e7022..0d9ffd107676920471b4f48c2add789d05c46354 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell.h |
+++ b/chrome/browser/android/vr_shell/vr_shell.h |
@@ -89,18 +89,21 @@ class VrShell : public device::GvrDelegate { |
gvr::GvrApi* gvr_api() override; |
void SetGvrPoseForWebVr(const gvr::Mat4f& pose, uint32_t pose_num) override; |
- void ContentSurfaceChanged( |
+ void SurfacesChanged( |
JNIEnv* env, |
const base::android::JavaParamRef<jobject>& object, |
- jint width, |
- jint height, |
- const base::android::JavaParamRef<jobject>& surface); |
- void UiSurfaceChanged( |
+ const base::android::JavaParamRef<jobject>& content_surface, |
+ const base::android::JavaParamRef<jobject>& ui_surface); |
+ |
+ void ContentBoundsChanged( |
JNIEnv* env, |
const base::android::JavaParamRef<jobject>& object, |
- jint width, |
- jint height, |
- const base::android::JavaParamRef<jobject>& surface); |
+ jint width, jint height); |
+ |
+ void UIBoundsChanged( |
+ JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& object, |
+ jint width, jint height); |
// Called from non-render thread to queue a callback onto the render thread. |
// The render thread checks for callbacks and processes them between frames. |
@@ -109,6 +112,9 @@ class VrShell : public device::GvrDelegate { |
// Perform a UI action triggered by the javascript API. |
void DoUiAction(const UiAction action); |
+ void SetContentCssSize(float width, float height, float dpr); |
+ void SetUiCssSize(float width, float height, float dpr); |
+ |
private: |
virtual ~VrShell(); |
void LoadUIContent(); |