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

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 1184913002: [Password Manager] Suppress UI when password generation is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Second try Created 5 years, 6 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_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Whether or not to ignore text changes. Useful for when we're committing 259 // Whether or not to ignore text changes. Useful for when we're committing
260 // a composition when we are defocusing the WebView and we don't want to 260 // a composition when we are defocusing the WebView and we don't want to
261 // trigger an autofill popup to show. 261 // trigger an autofill popup to show.
262 bool ignore_text_changes_; 262 bool ignore_text_changes_;
263 263
264 // Whether the Autofill popup is possibly visible. This is tracked as a 264 // Whether the Autofill popup is possibly visible. This is tracked as a
265 // performance improvement, so that the IPC channel isn't flooded with 265 // performance improvement, so that the IPC channel isn't flooded with
266 // messages to close the Autofill popup when it can't possibly be showing. 266 // messages to close the Autofill popup when it can't possibly be showing.
267 bool is_popup_possibly_visible_; 267 bool is_popup_possibly_visible_;
268 268
269 // If the generation popup is possibly visible. This is tracked to prevent
270 // generation UI from displaying at the same time as password manager UI.
271 // This is needed because generation is shown on field focus vs. field click
272 // for the password manager. TODO(gcasto): Have both UIs show on focus.
Ilya Sherman 2015/06/16 02:24:09 Long-term, should there be a combined UI? Or are
Garrett Casto 2015/06/16 06:15:05 Really only one of these should be active at any t
Ilya Sherman 2015/06/16 19:49:23 Should we record some metrics to verify whether th
Garrett Casto 2015/06/17 19:48:10 I added something in the latest patch. Even if thi
273 bool is_generation_popup_possibly_visible_;
274
269 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 275 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
270 276
271 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 277 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
272 }; 278 };
273 279
274 } // namespace autofill 280 } // namespace autofill
275 281
276 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 282 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698