Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / autofill / autofill_popup_view_views.h
blobe7f09b577bb8f66a613e9784a313b69e0cf9fb85
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
8 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
9 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
11 class AutofillPopupController;
13 namespace autofill {
15 // Views toolkit implementation for AutofillPopupView.
16 class AutofillPopupViewViews : public AutofillPopupBaseView,
17 public AutofillPopupView {
18 public:
19 AutofillPopupViewViews(AutofillPopupController* controller,
20 views::FocusManager* focus_manager);
22 private:
23 ~AutofillPopupViewViews() override;
25 // AutofillPopupView implementation.
26 void Show() override;
27 void Hide() override;
28 void InvalidateRow(size_t row) override;
29 void UpdateBoundsAndRedrawPopup() override;
31 // views::Views implementation
32 void OnPaint(gfx::Canvas* canvas) override;
34 // Draw the given autofill entry in |entry_rect|.
35 void DrawAutofillEntry(gfx::Canvas* canvas,
36 int index,
37 const gfx::Rect& entry_rect);
39 AutofillPopupController* controller_; // Weak reference.
41 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
44 } // namespace autofill
46 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_