| Index: components/autofill/content/renderer/password_autofill_agent.h
|
| diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
|
| index 17ae4831fe58a5aec23fe2598aa329f18ea330f7..4c9aa66daf8a37c85c298e4e6eacbb0c4afab67e 100644
|
| --- a/components/autofill/content/renderer/password_autofill_agent.h
|
| +++ b/components/autofill/content/renderer/password_autofill_agent.h
|
| @@ -46,9 +46,11 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
|
| // cleared when the selection changes. However, this method returns
|
| // true when |node| is fillable by password Autofill.
|
| bool DidClearAutofillSelection(const blink::WebNode& node);
|
| - // Shows an Autofill popup with username suggestions for |element|.
|
| + // Shows an Autofill popup with username suggestions for |element|. If
|
| + // |show_all| is |true|, will show all possible suggestions for that element,
|
| + // otherwise shows suggestions based on current value of |element|.
|
| // Returns true if any suggestions were shown, false otherwise.
|
| - bool ShowSuggestions(const blink::WebInputElement& element);
|
| + bool ShowSuggestions(const blink::WebInputElement& element, bool show_all);
|
|
|
| // Called when new form controls are inserted.
|
| void OnDynamicFormsSeen(blink::WebFrame* frame);
|
| @@ -57,6 +59,9 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
|
| virtual bool OriginCanAccessPasswordManager(
|
| const blink::WebSecurityOrigin& origin);
|
|
|
| + // RenderViewObserver:
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| private:
|
| friend class PasswordAutofillAgentTest;
|
|
|
| @@ -109,7 +114,6 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
|
| };
|
|
|
| // RenderViewObserver:
|
| - virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| virtual void DidStartProvisionalLoad(blink::WebFrame* frame) OVERRIDE;
|
| virtual void DidStartLoading() OVERRIDE;
|
| virtual void DidFinishDocumentLoad(blink::WebFrame* frame) OVERRIDE;
|
| @@ -132,10 +136,12 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
|
| void GetSuggestions(const PasswordFormFillData& fill_data,
|
| const base::string16& input,
|
| std::vector<base::string16>* suggestions,
|
| - std::vector<base::string16>* realms);
|
| + std::vector<base::string16>* realms,
|
| + bool show_all);
|
|
|
| bool ShowSuggestionPopup(const PasswordFormFillData& fill_data,
|
| - const blink::WebInputElement& user_input);
|
| + const blink::WebInputElement& user_input,
|
| + bool show_all);
|
|
|
| // Attempts to fill |username_element| and |password_element| with the
|
| // |fill_data|. Will use the data corresponding to the preferred username,
|
|
|