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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.h

Issue 2670003002: Accessibility for Autofill Popup View in native code (Closed)
Patch Set: Incorporates Mathieu Perreault's suggestions. Adds NotifyAccessibilityEvent to mouse events in Auto… Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/autofill_popup_view_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.h b/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
index 01f214b2e1f05b4604a48e686c7252c46741ea07..eb550ef4aa9e8052ab1c47b25896652135efa590 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "chrome/browser/ui/autofill/autofill_popup_view.h"
#include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
+#include "ui/views/view.h"
namespace autofill {
@@ -34,14 +35,32 @@ class AutofillPopupViewViews : public AutofillPopupBaseView,
// views::Views implementation
void OnPaint(gfx::Canvas* canvas) override;
+ AutofillPopupController* controller_; // Weak reference.
+
+ DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
+};
+
+class AutofillPopupChildView : public views::View {
+ public:
+ AutofillPopupChildView(AutofillPopupController* controller,
+ size_t index);
+
+ // views::Views implementation
+ void OnPaint(gfx::Canvas* canvas) override;
+
+ private:
+ ~AutofillPopupChildView() override;
+
+ // views::Views implementation
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
+
// Draw the given autofill entry in |entry_rect|.
void DrawAutofillEntry(gfx::Canvas* canvas,
int index,
const gfx::Rect& entry_rect);
AutofillPopupController* controller_; // Weak reference.
-
- DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
+ const size_t index_;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698