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

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

Issue 2295693004: Pass JavaRef to Java methods in android_webview. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « android_webview/native/aw_autofill_client.cc ('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 9
10 #include <list> 10 #include <list>
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 const base::android::JavaParamRef<jobject>& obj, 298 const base::android::JavaParamRef<jobject>& obj,
299 jint target_x, 299 jint target_x,
300 jint target_y, 300 jint target_y,
301 jlong duration_ms); 301 jlong duration_ms);
302 void SetDipScale(JNIEnv* env, 302 void SetDipScale(JNIEnv* env,
303 const base::android::JavaParamRef<jobject>& obj, 303 const base::android::JavaParamRef<jobject>& obj,
304 jfloat dip_scale); 304 jfloat dip_scale);
305 void SetSaveFormData(bool enabled); 305 void SetSaveFormData(bool enabled);
306 306
307 // Sets the java client 307 // Sets the java client
308 void SetAwAutofillClient(jobject client); 308 void SetAwAutofillClient(const base::android::JavaRef<jobject>& client);
309 309
310 void SetJsOnlineProperty(JNIEnv* env, 310 void SetJsOnlineProperty(JNIEnv* env,
311 const base::android::JavaParamRef<jobject>& obj, 311 const base::android::JavaParamRef<jobject>& obj,
312 jboolean network_up); 312 jboolean network_up);
313 void TrimMemory(JNIEnv* env, 313 void TrimMemory(JNIEnv* env,
314 const base::android::JavaParamRef<jobject>& obj, 314 const base::android::JavaParamRef<jobject>& obj,
315 jint level, 315 jint level,
316 jboolean visible); 316 jboolean visible);
317 317
318 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); 318 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 GLViewRendererManager::Key renderer_manager_key_; 375 GLViewRendererManager::Key renderer_manager_key_;
376 376
377 DISALLOW_COPY_AND_ASSIGN(AwContents); 377 DISALLOW_COPY_AND_ASSIGN(AwContents);
378 }; 378 };
379 379
380 bool RegisterAwContents(JNIEnv* env); 380 bool RegisterAwContents(JNIEnv* env);
381 381
382 } // namespace android_webview 382 } // namespace android_webview
383 383
384 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 384 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_autofill_client.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698