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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.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
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 CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H_
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H_ 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 // screen, condensing rather than overlaying the content area. Enable via 25 // screen, condensing rather than overlaying the content area. Enable via
26 // --enable-autofill-keyboard-accessory-view. 26 // --enable-autofill-keyboard-accessory-view.
27 class AutofillKeyboardAccessoryView : public AutofillPopupView { 27 class AutofillKeyboardAccessoryView : public AutofillPopupView {
28 public: 28 public:
29 explicit AutofillKeyboardAccessoryView(AutofillPopupController* controller); 29 explicit AutofillKeyboardAccessoryView(AutofillPopupController* controller);
30 30
31 // -------------------------------------------------------------------------- 31 // --------------------------------------------------------------------------
32 // Methods called from Java via JNI 32 // Methods called from Java via JNI
33 // -------------------------------------------------------------------------- 33 // --------------------------------------------------------------------------
34 // Called when an autofill item was selected. 34 // Called when an autofill item was selected.
35 void SuggestionSelected(JNIEnv* env, jobject obj, jint list_index); 35 void SuggestionSelected(JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& obj,
37 jint list_index);
36 38
37 void DeletionRequested(JNIEnv* env, jobject obj, jint list_index); 39 void DeletionRequested(JNIEnv* env,
40 const base::android::JavaParamRef<jobject>& obj,
41 jint list_index);
38 42
39 void DeletionConfirmed(JNIEnv* env, jobject obj); 43 void DeletionConfirmed(JNIEnv* env,
44 const base::android::JavaParamRef<jobject>& obj);
40 45
41 void ViewDismissed(JNIEnv* env, jobject obj); 46 void ViewDismissed(JNIEnv* env,
47 const base::android::JavaParamRef<jobject>& obj);
42 48
43 static bool RegisterAutofillKeyboardAccessoryView(JNIEnv* env); 49 static bool RegisterAutofillKeyboardAccessoryView(JNIEnv* env);
44 50
45 protected: 51 protected:
46 // AutofillPopupView implementation. 52 // AutofillPopupView implementation.
47 void Show() override; 53 void Show() override;
48 void Hide() override; 54 void Hide() override;
49 void InvalidateRow(size_t row) override; 55 void InvalidateRow(size_t row) override;
50 void UpdateBoundsAndRedrawPopup() override; 56 void UpdateBoundsAndRedrawPopup() override;
51 57
(...skipping 11 matching lines...) Expand all
63 69
64 // The corresponding java object. 70 // The corresponding java object.
65 base::android::ScopedJavaGlobalRef<jobject> java_object_; 71 base::android::ScopedJavaGlobalRef<jobject> java_object_;
66 72
67 DISALLOW_COPY_AND_ASSIGN(AutofillKeyboardAccessoryView); 73 DISALLOW_COPY_AND_ASSIGN(AutofillKeyboardAccessoryView);
68 }; 74 };
69 75
70 } // namespace autofill 76 } // namespace autofill
71 77
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H _ 78 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698