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

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 <vector>
Ilya Sherman 2012/08/14 05:12:09 nit: This doesn't look like it's used within the h
csharp 2012/08/14 19:06:13 Done.
9
10 #include "chrome/browser/autofill/autofill_popup_view.h"
11 #include "content/public/browser/keyboard_listener.h"
12 #include "ui/views/view.h"
13
14 namespace content {
15 class RenderViewHost;
16 class WebContents;
17 }
18
19 namespace gfx {
20 class Rect;
21 }
22
23 class AutofillPopupViewViews : public views::View,
24 public AutofillPopupView,
25 public KeyboardListener {
26 public:
27 AutofillPopupViewViews(content::WebContents* web_contents,
28 AutofillExternalDelegate* external_delegate);
29 virtual ~AutofillPopupViewViews();
30
31 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
Ilya Sherman 2012/08/14 05:12:09 nit: Does this need to be public? What is it over
csharp 2012/08/14 19:06:13 Moved to private. Overriding the views::View funct
32
33 protected:
34 // AutofillPopupView implementations.
Ilya Sherman 2012/08/14 05:12:09 nit: "implementations" -> "implementation"
csharp 2012/08/14 19:06:13 Done.
35 virtual void ShowInternal() OVERRIDE;
36 virtual void HideInternal() OVERRIDE;
37 virtual void InvalidateRow(size_t row) OVERRIDE;
38 virtual void ResizePopup() OVERRIDE;
Ilya Sherman 2012/08/14 05:12:09 nit: Do these need to be protected, or can they be
csharp 2012/08/14 19:06:13 I don't think so, moved.
39
40 private:
41 class AutofillPopupWidget;
42
43 // The popup that contains this view. We create this, but it deletes itself
44 // when its window is destroyed. This is a WeakPtr because it's possible for
45 // the OS to destroy the window and thus delete this object before we're
46 // deleted, or without our knowledge.
47 base::WeakPtr<AutofillPopupWidget> popup_;
48
49 content::RenderViewHost* render_view_host_; // Weak reference.
Ilya Sherman 2012/08/14 05:12:09 nit: Why cache this if you're already caching the
csharp 2012/08/14 19:06:13 Removed.
50 content::WebContents* web_contents_; // Weak reference.
51
52 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
53 };
54
55 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698