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

Unified Diff: android_webview/native/aw_picture.h

Issue 1492703004: Pass method parameters as JavaParamRef in android_webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to test compile unit tests before uploading, whoops Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_pdf_exporter.cc ('k') | android_webview/native/aw_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_picture.h
diff --git a/android_webview/native/aw_picture.h b/android_webview/native/aw_picture.h
index fc4d1ec86041afccc77a926977c709072f65a6b4..bc129e5db26d73ee30c69a56b3dfda824e985360 100644
--- a/android_webview/native/aw_picture.h
+++ b/android_webview/native/aw_picture.h
@@ -23,10 +23,12 @@ class AwPicture {
~AwPicture();
// Methods called from Java.
- void Destroy(JNIEnv* env, jobject obj);
- jint GetWidth(JNIEnv* env, jobject obj);
- jint GetHeight(JNIEnv* env, jobject obj);
- void Draw(JNIEnv* env, jobject obj, jobject canvas);
+ void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ jint GetWidth(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ jint GetHeight(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void Draw(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ const base::android::JavaParamRef<jobject>& canvas);
private:
skia::RefPtr<SkPicture> picture_;
« no previous file with comments | « android_webview/native/aw_pdf_exporter.cc ('k') | android_webview/native/aw_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698