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

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

Issue 1417893006: sync compositor: pass simple gfx types by const ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « android_webview/browser/test/rendering_test.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // AwRenderViewHostExtClient implementation. 199 // AwRenderViewHostExtClient implementation.
200 void OnWebLayoutPageScaleFactorChanged(float page_scale_factor) override; 200 void OnWebLayoutPageScaleFactorChanged(float page_scale_factor) override;
201 void OnWebLayoutContentsSizeChanged(const gfx::Size& contents_size) override; 201 void OnWebLayoutContentsSizeChanged(const gfx::Size& contents_size) override;
202 202
203 // BrowserViewRendererClient implementation. 203 // BrowserViewRendererClient implementation.
204 bool RequestDrawGL(bool wait_for_completion) override; 204 bool RequestDrawGL(bool wait_for_completion) override;
205 void PostInvalidate() override; 205 void PostInvalidate() override;
206 void DetachFunctorFromView() override; 206 void DetachFunctorFromView() override;
207 void OnNewPicture() override; 207 void OnNewPicture() override;
208 gfx::Point GetLocationOnScreen() override; 208 gfx::Point GetLocationOnScreen() override;
209 void ScrollContainerViewTo(gfx::Vector2d new_value) override; 209 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override;
210 void UpdateScrollState(gfx::Vector2d max_scroll_offset, 210 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
211 gfx::SizeF contents_size_dip, 211 const gfx::SizeF& contents_size_dip,
212 float page_scale_factor, 212 float page_scale_factor,
213 float min_page_scale_factor, 213 float min_page_scale_factor,
214 float max_page_scale_factor) override; 214 float max_page_scale_factor) override;
215 void DidOverscroll(gfx::Vector2d overscroll_delta, 215 void DidOverscroll(const gfx::Vector2d& overscroll_delta,
216 gfx::Vector2dF overscroll_velocity) override; 216 const gfx::Vector2dF& overscroll_velocity) override;
217 217
218 void ParentDrawConstraintsUpdated( 218 void ParentDrawConstraintsUpdated(
219 const ParentCompositorDrawConstraints& draw_constraints) override {} 219 const ParentCompositorDrawConstraints& draw_constraints) override {}
220 220
221 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 221 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
222 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); 222 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending);
223 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); 223 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj);
224 224
225 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); 225 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
226 void SmoothScroll(JNIEnv* env, 226 void SmoothScroll(JNIEnv* env,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 GLViewRendererManager::Key renderer_manager_key_; 276 GLViewRendererManager::Key renderer_manager_key_;
277 277
278 DISALLOW_COPY_AND_ASSIGN(AwContents); 278 DISALLOW_COPY_AND_ASSIGN(AwContents);
279 }; 279 };
280 280
281 bool RegisterAwContents(JNIEnv* env); 281 bool RegisterAwContents(JNIEnv* env);
282 282
283 } // namespace android_webview 283 } // namespace android_webview
284 284
285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/browser/test/rendering_test.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698