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

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

Issue 2670003002: Accessibility for Autofill Popup View in native code (Closed)
Patch Set: Switches to CHECK to ensure crash is caught early. Created 3 years, 9 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
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 <stddef.h> 9 #include <stddef.h>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const base::android::JavaParamRef<jobject>& obj); 45 const base::android::JavaParamRef<jobject>& obj);
46 46
47 static bool RegisterAutofillKeyboardAccessoryView(JNIEnv* env); 47 static bool RegisterAutofillKeyboardAccessoryView(JNIEnv* env);
48 48
49 protected: 49 protected:
50 // AutofillPopupView implementation. 50 // AutofillPopupView implementation.
51 void Show() override; 51 void Show() override;
52 void Hide() override; 52 void Hide() override;
53 void InvalidateRow(size_t row) override; 53 void InvalidateRow(size_t row) override;
54 void UpdateBoundsAndRedrawPopup() override; 54 void UpdateBoundsAndRedrawPopup() override;
55 void NotifyAccessibilityEventForRow(ui::AXEvent event_type,
56 size_t row) override {}
55 57
56 private: 58 private:
57 ~AutofillKeyboardAccessoryView() override; 59 ~AutofillKeyboardAccessoryView() override;
58 60
59 AutofillPopupController* controller_; // weak. 61 AutofillPopupController* controller_; // weak.
60 62
61 // The index of the last item the user long-pressed (they will be shown a 63 // The index of the last item the user long-pressed (they will be shown a
62 // confirmation dialog). 64 // confirmation dialog).
63 int deleting_index_; 65 int deleting_index_;
64 66
65 // Mapping from Java list index to autofill suggestion index. 67 // Mapping from Java list index to autofill suggestion index.
66 std::vector<int> positions_; 68 std::vector<int> positions_;
67 69
68 // The corresponding java object. 70 // The corresponding java object.
69 base::android::ScopedJavaGlobalRef<jobject> java_object_; 71 base::android::ScopedJavaGlobalRef<jobject> java_object_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(AutofillKeyboardAccessoryView); 73 DISALLOW_COPY_AND_ASSIGN(AutofillKeyboardAccessoryView);
72 }; 74 };
73 75
74 } // namespace autofill 76 } // namespace autofill
75 77
76 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H _ 78 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_KEYBOARD_ACCESSORY_VIEW_H _
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/android/autofill/autofill_popup_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698