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

Side by Side Diff: chrome/renderer/autofill/password_generation_manager.h

Issue 10705006: Focus should be moved to the next input field after we generate the password. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/password_generation_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_
6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void willDetach(const WebKit::WebInputElement& element) OVERRIDE; 61 virtual void willDetach(const WebKit::WebInputElement& element) OVERRIDE;
62 62
63 // Message handlers. 63 // Message handlers.
64 void OnFormNotBlacklisted(const webkit::forms::PasswordForm& form); 64 void OnFormNotBlacklisted(const webkit::forms::PasswordForm& form);
65 void OnPasswordAccepted(const string16& password); 65 void OnPasswordAccepted(const string16& password);
66 void OnPasswordGenerationEnabled(bool enabled); 66 void OnPasswordGenerationEnabled(bool enabled);
67 67
68 // Helper function to decide whether we should show password generation icon. 68 // Helper function to decide whether we should show password generation icon.
69 void MaybeShowIcon(); 69 void MaybeShowIcon();
70 70
71 content::RenderView* render_view_;
72
71 // True if password generation is enabled for the profile associated 73 // True if password generation is enabled for the profile associated
72 // with this renderer. 74 // with this renderer.
73 bool enabled_; 75 bool enabled_;
74 76
75 // Stores the origin of the account creation form we detected. 77 // Stores the origin of the account creation form we detected.
76 GURL account_creation_form_origin_; 78 GURL account_creation_form_origin_;
77 79
78 // Stores the origins of the password forms confirmed not to be blacklisted 80 // Stores the origins of the password forms confirmed not to be blacklisted
79 // by the browser. A form can be blacklisted if a user chooses "never save 81 // by the browser. A form can be blacklisted if a user chooses "never save
80 // passwords for this site". 82 // passwords for this site".
81 std::vector<GURL> not_blacklisted_password_form_origins_; 83 std::vector<GURL> not_blacklisted_password_form_origins_;
82 84
83 std::vector<WebKit::WebInputElement> passwords_; 85 std::vector<WebKit::WebInputElement> passwords_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationManager); 87 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationManager);
86 }; 88 };
87 89
88 } // namespace autofill 90 } // namespace autofill
89 91
90 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ 92 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/password_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698