| 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..827ce54304b3d56fb4007cb65f0743129fd1511b 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 {
|
|
|
| @@ -33,6 +34,29 @@ class AutofillPopupViewViews : public AutofillPopupBaseView,
|
|
|
| // views::Views implementation
|
| void OnPaint(gfx::Canvas* canvas) override;
|
| + void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
| +
|
| + AutofillPopupController* controller_; // Weak reference.
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
|
| +};
|
| +
|
| +class AutofillPopupChildView : public views::View {
|
| + public:
|
| + AutofillPopupChildView(AutofillPopupController* controller,
|
| + size_t index)
|
| + : controller_(controller), index_(index) {}
|
| +
|
| + // views::Views implementation
|
| + void OnPaint(gfx::Canvas* canvas) override;
|
| +
|
| + void clear_controller() { controller_ = NULL; }
|
| +
|
| + 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,
|
| @@ -40,8 +64,7 @@ class AutofillPopupViewViews : public AutofillPopupBaseView,
|
| const gfx::Rect& entry_rect);
|
|
|
| AutofillPopupController* controller_; // Weak reference.
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
|
| + const size_t index_;
|
| };
|
|
|
| } // namespace autofill
|
|
|