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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.h

Issue 10825324: Start of New Autofill UI for Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasing Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 WebContents;
16 }
17
18 // The View Autofill popup implementation.
19 class AutofillPopupViewViews : public views::WidgetDelegateView,
20 public AutofillPopupView,
21 public KeyboardListener {
22 public:
23 AutofillPopupViewViews(content::WebContents* web_contents,
24 AutofillExternalDelegateViews* external_delegate);
25
26 private:
27 class AutofillPopupWidget;
28
29 virtual ~AutofillPopupViewViews();
30
31 // views:Views implementation.
32 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
33
34 // AutofillPopupView implementation.
35 virtual void ShowInternal() OVERRIDE;
36 virtual void HideInternal() OVERRIDE;
37 virtual void InvalidateRow(size_t row) OVERRIDE;
38 virtual void ResizePopup() OVERRIDE;
39
40 AutofillExternalDelegateViews* external_delegate_; // Weak reference.
41 content::WebContents* web_contents_; // Weak reference.
42
43 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
44 };
45
46 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698