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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 256303006: Make LayerScrollOffsetDelegate updates consistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual void OnWebLayoutPageScaleFactorChanged( 160 virtual void OnWebLayoutPageScaleFactorChanged(
161 float page_scale_factor) OVERRIDE; 161 float page_scale_factor) OVERRIDE;
162 virtual void OnWebLayoutContentsSizeChanged( 162 virtual void OnWebLayoutContentsSizeChanged(
163 const gfx::Size& contents_size) OVERRIDE; 163 const gfx::Size& contents_size) OVERRIDE;
164 164
165 // BrowserViewRendererClient implementation. 165 // BrowserViewRendererClient implementation.
166 virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) OVERRIDE; 166 virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) OVERRIDE;
167 virtual void PostInvalidate() OVERRIDE; 167 virtual void PostInvalidate() OVERRIDE;
168 virtual void OnNewPicture() OVERRIDE; 168 virtual void OnNewPicture() OVERRIDE;
169 virtual gfx::Point GetLocationOnScreen() OVERRIDE; 169 virtual gfx::Point GetLocationOnScreen() OVERRIDE;
170 virtual void SetMaxContainerViewScrollOffset(
171 gfx::Vector2d new_value) OVERRIDE;
172 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; 170 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE;
173 virtual bool IsFlingActive() const OVERRIDE; 171 virtual bool IsFlingActive() const OVERRIDE;
174 virtual void SetPageScaleFactorAndLimits( 172 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset,
175 float page_scale_factor, 173 gfx::SizeF contents_size_dip,
176 float min_page_scale_factor, 174 float page_scale_factor,
177 float max_page_scale_factor) OVERRIDE; 175 float min_page_scale_factor,
178 virtual void SetContentsSize(gfx::SizeF contents_size_dip) OVERRIDE; 176 float max_page_scale_factor) OVERRIDE;
179 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; 177 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE;
180 178
181 const BrowserViewRenderer* GetBrowserViewRenderer() const; 179 const BrowserViewRenderer* GetBrowserViewRenderer() const;
182 180
183 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 181 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
184 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 182 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
185 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); 183 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj);
186 184
187 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); 185 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
188 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); 186 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 std::list<OriginCallback> pending_geolocation_prompts_; 229 std::list<OriginCallback> pending_geolocation_prompts_;
232 230
233 DISALLOW_COPY_AND_ASSIGN(AwContents); 231 DISALLOW_COPY_AND_ASSIGN(AwContents);
234 }; 232 };
235 233
236 bool RegisterAwContents(JNIEnv* env); 234 bool RegisterAwContents(JNIEnv* env);
237 235
238 } // namespace android_webview 236 } // namespace android_webview
239 237
240 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 238 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698