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

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: fix build break 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual void OnWebLayoutPageScaleFactorChanged( 169 virtual void OnWebLayoutPageScaleFactorChanged(
170 float page_scale_factor) OVERRIDE; 170 float page_scale_factor) OVERRIDE;
171 virtual void OnWebLayoutContentsSizeChanged( 171 virtual void OnWebLayoutContentsSizeChanged(
172 const gfx::Size& contents_size) OVERRIDE; 172 const gfx::Size& contents_size) OVERRIDE;
173 173
174 // BrowserViewRendererClient implementation. 174 // BrowserViewRendererClient implementation.
175 virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) OVERRIDE; 175 virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) OVERRIDE;
176 virtual void PostInvalidate() OVERRIDE; 176 virtual void PostInvalidate() OVERRIDE;
177 virtual void OnNewPicture() OVERRIDE; 177 virtual void OnNewPicture() OVERRIDE;
178 virtual gfx::Point GetLocationOnScreen() OVERRIDE; 178 virtual gfx::Point GetLocationOnScreen() OVERRIDE;
179 virtual void SetMaxContainerViewScrollOffset(
180 gfx::Vector2d new_value) OVERRIDE;
181 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; 179 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE;
182 virtual bool IsFlingActive() const OVERRIDE; 180 virtual bool IsFlingActive() const OVERRIDE;
183 virtual void SetPageScaleFactorAndLimits( 181 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset,
184 float page_scale_factor, 182 gfx::SizeF contents_size_dip,
185 float min_page_scale_factor, 183 float page_scale_factor,
186 float max_page_scale_factor) OVERRIDE; 184 float min_page_scale_factor,
187 virtual void SetContentsSize(gfx::SizeF contents_size_dip) OVERRIDE; 185 float max_page_scale_factor) OVERRIDE;
188 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; 186 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE;
189 187
190 const BrowserViewRenderer* GetBrowserViewRenderer() const; 188 const BrowserViewRenderer* GetBrowserViewRenderer() const;
191 189
192 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 190 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
193 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 191 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
194 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); 192 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj);
195 193
196 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); 194 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
197 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); 195 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 std::list<OriginCallback> pending_geolocation_prompts_; 238 std::list<OriginCallback> pending_geolocation_prompts_;
241 239
242 DISALLOW_COPY_AND_ASSIGN(AwContents); 240 DISALLOW_COPY_AND_ASSIGN(AwContents);
243 }; 241 };
244 242
245 bool RegisterAwContents(JNIEnv* env); 243 bool RegisterAwContents(JNIEnv* env);
246 244
247 } // namespace android_webview 245 } // namespace android_webview
248 246
249 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 247 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698