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

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: Created 8 years, 4 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/view.h"
11
12 namespace content {
13 class RenderViewHost;
14 class WebContents;
15 }
16
17 namespace gfx {
18 class Rect;
19 }
20
21 class AutofillPopupViewViews : public views::View,
22 public AutofillPopupView,
23 public KeyboardListener {
24 public:
25 AutofillPopupViewViews(content::WebContents* web_contents,
26 AutofillExternalDelegate* external_delegate);
27 virtual ~AutofillPopupViewViews();
28
29 private:
30 class AutofillPopupWidget;
31
32 // views::View implementation.
33 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
34
35 // AutofillPopupView implementation.
36 virtual void ShowInternal() OVERRIDE;
37 virtual void HideInternal() OVERRIDE;
38 virtual void InvalidateRow(size_t row) OVERRIDE;
39 virtual void ResizePopup() OVERRIDE;
40
41 // The popup that contains this view. We create this, but it deletes itself
42 // when its window is destroyed. This is a WeakPtr because it's possible for
43 // the OS to destroy the window and thus delete this object before we're
44 // deleted, or without our knowledge.
45 base::WeakPtr<AutofillPopupWidget> popup_;
46
47 content::WebContents* web_contents_; // Weak reference.
48
49 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
50 };
51
52 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698