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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate_gtk.h

Issue 10073018: Add Delete Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual void HideAutofillPopupInternal() OVERRIDE; 31 virtual void HideAutofillPopupInternal() OVERRIDE;
32 virtual void OnQueryPlatformSpecific( 32 virtual void OnQueryPlatformSpecific(
33 int query_id, 33 int query_id,
34 const webkit::forms::FormData& form, 34 const webkit::forms::FormData& form,
35 const webkit::forms::FormField& field, 35 const webkit::forms::FormField& field,
36 const gfx::Rect& bounds) OVERRIDE; 36 const gfx::Rect& bounds) OVERRIDE;
37 virtual void ApplyAutofillSuggestions( 37 virtual void ApplyAutofillSuggestions(
38 const std::vector<string16>& autofill_values, 38 const std::vector<string16>& autofill_values,
39 const std::vector<string16>& autofill_labels, 39 const std::vector<string16>& autofill_labels,
40 const std::vector<string16>& autofill_icons, 40 const std::vector<string16>& autofill_icons,
41 const std::vector<int>& autofill_unique_ids, 41 const std::vector<int>& autofill_unique_ids) OVERRIDE;
42 int separator_index) OVERRIDE;
43 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 42 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
44 43
45 private: 44 private:
46 // Create a valid view to display the autofill results if one doesn't 45 // Create a valid view to display the autofill results if one doesn't
47 // currently exist. 46 // currently exist.
48 void CreateViewIfNeeded(); 47 void CreateViewIfNeeded();
49 48
50 CHROMEGTK_CALLBACK_1(AutofillExternalDelegateGtk, gboolean, 49 CHROMEGTK_CALLBACK_1(AutofillExternalDelegateGtk, gboolean,
51 HandleViewFocusOut, GdkEventFocus*); 50 HandleViewFocusOut, GdkEventFocus*);
52 51
53 scoped_ptr<AutofillPopupViewGtk> view_; 52 scoped_ptr<AutofillPopupViewGtk> view_;
54 53
55 content::WebContents* web_contents_; // Weak reference. 54 content::WebContents* web_contents_; // Weak reference.
56 gfx::NativeView tab_native_view_; // Weak reference. 55 gfx::NativeView tab_native_view_; // Weak reference.
57 56
58 // The handler value for the focus out event, allows us to block and unblock 57 // The handler value for the focus out event, allows us to block and unblock
59 // it as needed. 58 // it as needed.
60 gulong event_handler_id_; 59 gulong event_handler_id_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateGtk); 61 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateGtk);
63 }; 62 };
64 63
65 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_ 64 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/autofill_external_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698