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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.h

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments from isherman. Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 std::vector<base::string16>* icons, 104 std::vector<base::string16>* icons,
105 std::vector<int>* unique_ids); 105 std::vector<int>* unique_ids);
106 106
107 // Insert the data list values at the start of the given list, including 107 // Insert the data list values at the start of the given list, including
108 // any required separators. 108 // any required separators.
109 void InsertDataListValues(std::vector<base::string16>* values, 109 void InsertDataListValues(std::vector<base::string16>* values,
110 std::vector<base::string16>* labels, 110 std::vector<base::string16>* labels,
111 std::vector<base::string16>* icons, 111 std::vector<base::string16>* icons,
112 std::vector<int>* unique_ids); 112 std::vector<int>* unique_ids);
113 113
114 #if defined(OS_MACOSX)
115 // Reissues the most recent query, which will reopen the autofill popup.
116 void ReissueQuery();
117 #endif
118
114 AutofillManager* manager_; // weak. 119 AutofillManager* manager_; // weak.
115 120
116 // Provides driver-level context to the shared code of the component. Must 121 // Provides driver-level context to the shared code of the component. Must
117 // outlive this object. 122 // outlive this object.
118 AutofillDriver* driver_; // weak 123 AutofillDriver* driver_; // weak
119 124
120 // The ID of the last request sent for form field Autofill. Used to ignore 125 // The ID of the last request sent for form field Autofill. Used to ignore
121 // out of date responses. 126 // out of date responses.
122 int query_id_; 127 int query_id_;
123 128
(...skipping 11 matching lines...) Expand all
135 bool has_suggestion_; 140 bool has_suggestion_;
136 141
137 // Have we already shown Autofill suggestions for the field the user is 142 // Have we already shown Autofill suggestions for the field the user is
138 // currently editing? Used to keep track of state for metrics logging. 143 // currently editing? Used to keep track of state for metrics logging.
139 bool has_shown_popup_for_current_edit_; 144 bool has_shown_popup_for_current_edit_;
140 145
141 // The current data list values. 146 // The current data list values.
142 std::vector<base::string16> data_list_values_; 147 std::vector<base::string16> data_list_values_;
143 std::vector<base::string16> data_list_labels_; 148 std::vector<base::string16> data_list_labels_;
144 149
150 #if defined(OS_MACOSX)
151 // If this property is set, then the autofill popup is immediately
152 // redisplayed when the text field loses focus.
153 bool redisplay_popop_on_focus_lost_;
154 #endif
155
145 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; 156 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
146 157
147 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
148 }; 159 };
149 160
150 } // namespace autofill 161 } // namespace autofill
151 162
152 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 163 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698