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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_external_delegate_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_EXTERNAL_DELEGATE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/autofill/autofill_external_delegate.h"
10
11 class AutofillPopupViewViews;
Ilya Sherman 2012/08/14 05:12:09 Wonderful. :P
12
13 namespace content {
14 class WebContents;
15 }
16
17 class AutofillExternalDelegateViews : public AutofillExternalDelegate {
18 public:
19 AutofillExternalDelegateViews(TabContents* tab_contents,
20 AutofillManager* autofill_manager);
21
22 virtual ~AutofillExternalDelegateViews();
23
24 protected:
25 // AutofillExternalDelegate implementations.
Ilya Sherman 2012/08/14 05:12:09 nit: "implementations" -> "implementation"
csharp 2012/08/14 19:06:13 Done.
26 virtual void HideAutofillPopupInternal() OVERRIDE;
27 virtual void OnQueryPlatformSpecific(
28 int query_id,
29 const webkit::forms::FormData& form,
30 const webkit::forms::FormField& field,
31 const gfx::Rect& bounds) OVERRIDE;
32 virtual void ApplyAutofillSuggestions(
33 const std::vector<string16>& autofill_values,
34 const std::vector<string16>& autofill_labels,
35 const std::vector<string16>& autofill_icons,
36 const std::vector<int>& autofill_unique_ids) OVERRIDE;
37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
38
39 private:
40 // Create a valid view to display the autofill results if one doesn't
41 // currently exist.
42 void CreateViewIfNeeded();
43
44 scoped_ptr<AutofillPopupViewViews> view_;
45
46 content::WebContents* web_contents_; // Weak reference.
Ilya Sherman 2012/08/14 05:12:09 nit: The parent class should probably just have a
csharp 2012/08/14 19:06:13 Done.
47
48 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateViews);
49 };
50
51 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698