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; | |
|
tfarina
2012/09/02 12:13:25
unused here.
csharp
2012/09/05 17:28:52
Done.
| |
| 16 class WebContents; | |
| 17 } | |
| 18 | |
| 19 namespace gfx { | |
| 20 class Rect; | |
|
tfarina
2012/09/02 12:13:25
unused here.
csharp
2012/09/05 17:28:52
Done.
| |
| 21 } | |
| 22 | |
| 23 // The View Autofill popup implementation. | |
| 24 class AutofillPopupViewViews : public views::WidgetDelegateView, | |
| 25 public AutofillPopupView, | |
| 26 public KeyboardListener { | |
|
tfarina
2012/09/02 12:13:25
ouch, looks like this isn't in content namespace.
tfarina
2012/09/02 12:13:25
Looks like you don't need to inherit from Keyboard
csharp
2012/09/05 17:28:52
Yup, I do plan on adding views support later.
| |
| 27 public: | |
| 28 AutofillPopupViewViews(content::WebContents* web_contents, | |
| 29 AutofillExternalDelegateViews* external_delegate); | |
| 30 | |
| 31 private: | |
| 32 class AutofillPopupWidget; | |
| 33 | |
| 34 virtual ~AutofillPopupViewViews(); | |
| 35 | |
| 36 // views:Views implementation. | |
| 37 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
| 38 | |
|
tfarina
2012/09/02 12:13:25
remove extra blank line here.
csharp
2012/09/05 17:28:52
Done.
| |
| 39 | |
| 40 // AutofillPopupView implementation. | |
| 41 virtual void ShowInternal() OVERRIDE; | |
| 42 virtual void HideInternal() OVERRIDE; | |
| 43 virtual void InvalidateRow(size_t row) OVERRIDE; | |
| 44 virtual void ResizePopup() OVERRIDE; | |
| 45 | |
| 46 AutofillExternalDelegateViews* external_delegate_; // Weak reference. | |
| 47 content::WebContents* web_contents_; // Weak reference. | |
|
tfarina
2012/09/02 12:13:25
nit: I prefer // Not owned.
But that is just my p
| |
| 48 | |
| 49 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews); | |
| 50 }; | |
| 51 | |
| 52 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ | |
| OLD | NEW |