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

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

Issue 10396003: Add Icon Support for New Autofill Gtk UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // The user has choosen the selected line. 85 // The user has choosen the selected line.
86 bool AcceptSelectedLine(); 86 bool AcceptSelectedLine();
87 87
88 // The user has removed a suggestion. 88 // The user has removed a suggestion.
89 bool RemoveSelectedLine(); 89 bool RemoveSelectedLine();
90 90
91 // Return true if the index is the first element of a new section and should 91 // Return true if the index is the first element of a new section and should
92 // have a separator above it. 92 // have a separator above it.
93 bool IsSeparatorIndex(int index); 93 bool IsSeparatorIndex(int index);
94 94
95 // Get the resource value for the given resource, returning -1 if the
96 // resource isn't recognized.
97 int GetIconResourceID(const string16& resource_name);
98
99 bool has_icons() { return has_icons_; }
Ilya Sherman 2012/05/14 20:38:22 nit: No longer needed?
csharp 2012/05/15 13:19:09 Done.
100
95 private: 101 private:
96 // Returns true if the given id refers to an element that can be deleted. 102 // Returns true if the given id refers to an element that can be deleted.
97 bool CanDelete(int id); 103 bool CanDelete(int id);
98 104
99 // Returns true if the popup still has non-options entries to show the user. 105 // Returns true if the popup still has non-options entries to show the user.
100 bool HasAutofillEntries(); 106 bool HasAutofillEntries();
101 107
102 // content::NotificationObserver method override. 108 // content::NotificationObserver method override.
103 virtual void Observe(int type, 109 virtual void Observe(int type,
104 const content::NotificationSource& source, 110 const content::NotificationSource& source,
105 const content::NotificationDetails& details) OVERRIDE; 111 const content::NotificationDetails& details) OVERRIDE;
106 112
107 // A scoped container for notification registries. 113 // A scoped container for notification registries.
108 content::NotificationRegistrar registrar_; 114 content::NotificationRegistrar registrar_;
109 115
110 AutofillExternalDelegate* external_delegate_; 116 AutofillExternalDelegate* external_delegate_;
111 117
112 // The bounds of the text element that is the focus of the Autofill. 118 // The bounds of the text element that is the focus of the Autofill.
113 gfx::Rect element_bounds_; 119 gfx::Rect element_bounds_;
114 120
115 // The current Autofill query values. 121 // The current Autofill query values.
116 std::vector<string16> autofill_values_; 122 std::vector<string16> autofill_values_;
117 std::vector<string16> autofill_labels_; 123 std::vector<string16> autofill_labels_;
118 std::vector<string16> autofill_icons_; 124 std::vector<string16> autofill_icons_;
119 std::vector<int> autofill_unique_ids_; 125 std::vector<int> autofill_unique_ids_;
120 126
121 // The line that is currently selected by the user. 127 // The line that is currently selected by the user.
122 // |kNoSelection| indicates that no line is currently selected. 128 // |kNoSelection| indicates that no line is currently selected.
123 int selected_line_; 129 int selected_line_;
130
131 // Used to indicate if the current popup has icons for any of
132 // the Autofill data
133 bool has_icons_;
Ilya Sherman 2012/05/14 20:38:22 nit: No longer needed?
csharp 2012/05/15 13:19:09 Done.
124 }; 134 };
125 135
126 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_VIEW_H_ 136 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate_gtk.cc ('k') | chrome/browser/autofill/autofill_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698