Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no UpdateLayerBounds Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void ContentWebContentsDestroyed(); 125 void ContentWebContentsDestroyed();
126 // Called when our WebContents have been hidden. Usually a sign that something 126 // Called when our WebContents have been hidden. Usually a sign that something
127 // like another tab placed in front of it. 127 // like another tab placed in front of it.
128 void ContentWasHidden(); 128 void ContentWasHidden();
129 void ContentWasShown(); 129 void ContentWasShown();
130 130
131 void ContentSurfaceChanged(jobject surface); 131 void ContentSurfaceChanged(jobject surface);
132 void GvrDelegateReady(); 132 void GvrDelegateReady();
133 133
134 void OnPhysicalBackingSizeChanged(
135 JNIEnv* env,
136 const base::android::JavaParamRef<jobject>& obj,
137 const base::android::JavaParamRef<jobject>& jweb_contents,
138 jint width,
139 jint height);
134 void ContentPhysicalBoundsChanged( 140 void ContentPhysicalBoundsChanged(
135 JNIEnv* env, 141 JNIEnv* env,
136 const base::android::JavaParamRef<jobject>& object, 142 const base::android::JavaParamRef<jobject>& object,
137 jint width, 143 jint width,
138 jint height, 144 jint height,
139 jfloat dpr); 145 jfloat dpr);
140 146
141 // Perform a UI action triggered by the javascript API. 147 // Perform a UI action triggered by the javascript API.
142 void DoUiAction(const UiAction action, 148 void DoUiAction(const UiAction action,
143 const base::DictionaryValue* arguments); 149 const base::DictionaryValue* arguments);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 227 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
222 228
223 DISALLOW_COPY_AND_ASSIGN(VrShell); 229 DISALLOW_COPY_AND_ASSIGN(VrShell);
224 }; 230 };
225 231
226 bool RegisterVrShell(JNIEnv* env); 232 bool RegisterVrShell(JNIEnv* env);
227 233
228 } // namespace vr_shell 234 } // namespace vr_shell
229 235
230 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 236 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698