Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ | |
| 7 | |
| 8 #include "chrome/browser/autofill/autofill_popup_view.h" | |
| 9 #include "content/public/browser/keyboard_listener.h" | |
| 10 #include "ui/views/widget/widget_delegate.h" | |
| 11 | |
| 12 class AutofillExternalDelegateViews; | |
| 13 | |
| 14 namespace content { | |
| 15 class RenderViewHost; | |
| 16 class WebContents; | |
| 17 } | |
| 18 | |
| 19 namespace gfx { | |
| 20 class Rect; | |
| 21 } | |
| 22 | |
| 23 // The View Autofill popup implementation. | |
| 24 class AutofillPopupViewViews : public views::WidgetDelegateView, | |
| 25 public AutofillPopupView, | |
| 26 public KeyboardListener { | |
| 27 public: | |
| 28 AutofillPopupViewViews(content::WebContents* web_contents, | |
| 29 AutofillExternalDelegateViews* external_delegate); | |
| 30 virtual ~AutofillPopupViewViews(); | |
|
sky
2012/08/29 20:56:41
If you can, make this private.
csharp
2012/08/31 19:36:07
Done.
| |
| 31 | |
| 32 private: | |
| 33 class AutofillPopupWidget; | |
| 34 | |
| 35 // views:Views implementation. | |
| 36 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
| 37 | |
| 38 // views::WidgetDelegateView implementation. | |
| 39 virtual void WindowClosing() OVERRIDE; | |
| 40 | |
| 41 // AutofillPopupView implementation. | |
| 42 virtual void ShowInternal() OVERRIDE; | |
| 43 virtual void HideInternal() OVERRIDE; | |
| 44 virtual void InvalidateRow(size_t row) OVERRIDE; | |
| 45 virtual void ResizePopup() OVERRIDE; | |
| 46 | |
| 47 // Used to determine if our already closing, which would mean we don't | |
| 48 // need to close the widget. | |
| 49 bool popup_closing_; | |
|
Ilya Sherman
2012/08/29 22:36:44
nit: I don't see this used anywhere -- is it vesti
csharp
2012/08/31 19:36:07
Correct, removed.
| |
| 50 | |
| 51 AutofillExternalDelegateViews* external_delegate_; // Weak reference. | |
| 52 content::WebContents* web_contents_; // Weak reference. | |
| 53 | |
| 54 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews); | |
| 55 }; | |
| 56 | |
| 57 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ | |
| OLD | NEW |