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

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

Issue 2236413002: Remove PasswordAutofillAgent::TextFieldDidEndEditing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improved one test Created 4 years, 4 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_PASSWORD_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 class PasswordAutofillAgent : public content::RenderFrameObserver { 35 class PasswordAutofillAgent : public content::RenderFrameObserver {
36 public: 36 public:
37 explicit PasswordAutofillAgent(content::RenderFrame* render_frame); 37 explicit PasswordAutofillAgent(content::RenderFrame* render_frame);
38 ~PasswordAutofillAgent() override; 38 ~PasswordAutofillAgent() override;
39 39
40 void SetAutofillAgent(AutofillAgent* autofill_agent); 40 void SetAutofillAgent(AutofillAgent* autofill_agent);
41 41
42 // WebFrameClient editor related calls forwarded by AutofillAgent. 42 // WebFrameClient editor related calls forwarded by AutofillAgent.
43 // If they return true, it indicates the event was consumed and should not 43 // If they return true, it indicates the event was consumed and should not
44 // be used for any other autofill activity. 44 // be used for any other autofill activity.
45 bool TextFieldDidEndEditing(const blink::WebInputElement& element);
46 bool TextDidChangeInTextField(const blink::WebInputElement& element); 45 bool TextDidChangeInTextField(const blink::WebInputElement& element);
47 46
48 // Function that should be called whenever the value of |element| changes due 47 // Function that should be called whenever the value of |element| changes due
49 // to user input. This is separate from TextDidChangeInTextField() as that 48 // to user input. This is separate from TextDidChangeInTextField() as that
50 // function may trigger UI and should only be called when other UI won't be 49 // function may trigger UI and should only be called when other UI won't be
51 // shown. 50 // shown.
52 void UpdateStateForTextChange(const blink::WebInputElement& element); 51 void UpdateStateForTextChange(const blink::WebInputElement& element);
53 52
54 // Fills the username and password fields of this form with the given values. 53 // Fills the username and password fields of this form with the given values.
55 // Returns true if the fields were filled, false otherwise. 54 // Returns true if the fields were filled, false otherwise.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 FormsPredictionsMap form_predictions_; 268 FormsPredictionsMap form_predictions_;
270 269
271 AutofillAgent* autofill_agent_; // Weak reference. 270 AutofillAgent* autofill_agent_; // Weak reference.
272 271
273 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 272 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
274 }; 273 };
275 274
276 } // namespace autofill 275 } // namespace autofill
277 276
278 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 277 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698