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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h

Issue 1481553002: jni: Pass method parameters as JavaParamRef in chrome/browser/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/android/autofill/autofill_dialog_controller_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 20 matching lines...) Expand all
31 const AutofillClient::ResultCallback& callback); 31 const AutofillClient::ResultCallback& callback);
32 32
33 ~AutofillDialogControllerAndroid() override; 33 ~AutofillDialogControllerAndroid() override;
34 34
35 // AutofillDialogController implementation: 35 // AutofillDialogController implementation:
36 void Show() override; 36 void Show() override;
37 void Hide() override; 37 void Hide() override;
38 void TabActivated() override; 38 void TabActivated() override;
39 39
40 // JNI bindings for Java-side AutofillDialogDelegate: 40 // JNI bindings for Java-side AutofillDialogDelegate:
41 void DialogCancel(JNIEnv* env, jobject obj); 41 void DialogCancel(JNIEnv* env,
42 void DialogContinue(JNIEnv* env, 42 const base::android::JavaParamRef<jobject>& obj);
43 jobject obj, 43 void DialogContinue(
44 jobject full_wallet, 44 JNIEnv* env,
45 jboolean last_used_choice_is_autofill, 45 const base::android::JavaParamRef<jobject>& obj,
46 jstring last_used_account_name, 46 const base::android::JavaParamRef<jobject>& full_wallet,
47 jstring last_used_billing, 47 jboolean last_used_choice_is_autofill,
48 jstring last_used_shipping, 48 const base::android::JavaParamRef<jstring>& last_used_account_name,
49 jstring last_used_credit_card); 49 const base::android::JavaParamRef<jstring>& last_used_billing,
50 const base::android::JavaParamRef<jstring>& last_used_shipping,
51 const base::android::JavaParamRef<jstring>& last_used_credit_card);
50 52
51 // Establishes JNI bindings. 53 // Establishes JNI bindings.
52 static bool RegisterAutofillDialogControllerAndroid(JNIEnv* env); 54 static bool RegisterAutofillDialogControllerAndroid(JNIEnv* env);
53 55
54 private: 56 private:
55 AutofillDialogControllerAndroid( 57 AutofillDialogControllerAndroid(
56 content::WebContents* contents, 58 content::WebContents* contents,
57 const FormData& form_structure, 59 const FormData& form_structure,
58 const GURL& source_url, 60 const GURL& source_url,
59 const AutofillClient::ResultCallback& callback); 61 const AutofillClient::ResultCallback& callback);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 base::WeakPtrFactory<AutofillDialogControllerAndroid> 101 base::WeakPtrFactory<AutofillDialogControllerAndroid>
100 weak_ptr_factory_; 102 weak_ptr_factory_;
101 103
102 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerAndroid); 104 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerAndroid);
103 }; 105 };
104 106
105 } // namespace autofill 107 } // namespace autofill
106 108
107 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID _H_ 109 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698