| Index: chrome/browser/android/vr_shell/vr_shell.cc
|
| diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
|
| index 83360fb6de812064333aa0e8bb6f447a605a9bda..02a2fbfec972c457b477673ec672969aaddf975d 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -407,6 +407,18 @@ void VrShell::AppButtonPressed() {
|
| ui_->HandleAppButtonClicked();
|
| }
|
|
|
| +void VrShell::OnPhysicalBackingSizeChanged(
|
| + JNIEnv* env,
|
| + const JavaParamRef<jobject>& obj,
|
| + const JavaParamRef<jobject>& jweb_contents,
|
| + jint width,
|
| + jint height) {
|
| + content::WebContents* web_contents =
|
| + content::WebContents::FromJavaWebContents(jweb_contents);
|
| + gfx::Size size(width, height);
|
| + web_contents->GetNativeView()->OnPhysicalBackingSizeChanged(size);
|
| +}
|
| +
|
| void VrShell::ContentPhysicalBoundsChanged(JNIEnv* env,
|
| const JavaParamRef<jobject>& object,
|
| jint width,
|
|
|