OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // http://crbug.com/433486 | 60 // http://crbug.com/433486 |
61 class LegacyAutofillAgent : public content::RenderViewObserver { | 61 class LegacyAutofillAgent : public content::RenderViewObserver { |
62 public: | 62 public: |
63 LegacyAutofillAgent(content::RenderView* render_view, AutofillAgent* agent); | 63 LegacyAutofillAgent(content::RenderView* render_view, AutofillAgent* agent); |
64 ~LegacyAutofillAgent() override; | 64 ~LegacyAutofillAgent() override; |
65 | 65 |
66 private: | 66 private: |
67 // content::RenderViewObserver: | 67 // content::RenderViewObserver: |
68 void OnDestruct() override; | 68 void OnDestruct() override; |
69 void FocusedNodeChanged(const blink::WebNode& node) override; | 69 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 70 void FocusChangeComplete() override; |
70 | 71 |
71 AutofillAgent* agent_; | 72 AutofillAgent* agent_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); | 74 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); |
74 }; | 75 }; |
75 friend class LegacyAutofillAgent; | 76 friend class LegacyAutofillAgent; |
76 | 77 |
77 // Flags passed to ShowSuggestions. | 78 // Flags passed to ShowSuggestions. |
78 struct ShowSuggestionsOptions { | 79 struct ShowSuggestionsOptions { |
79 // All fields are default initialized to false. | 80 // All fields are default initialized to false. |
(...skipping 30 matching lines...) Expand all Loading... |
110 // content::RenderFrameObserver: | 111 // content::RenderFrameObserver: |
111 bool OnMessageReceived(const IPC::Message& message) override; | 112 bool OnMessageReceived(const IPC::Message& message) override; |
112 void DidCommitProvisionalLoad(bool is_new_navigation) override; | 113 void DidCommitProvisionalLoad(bool is_new_navigation) override; |
113 void DidFinishDocumentLoad() override; | 114 void DidFinishDocumentLoad() override; |
114 void WillSubmitForm(const blink::WebFormElement& form) override; | 115 void WillSubmitForm(const blink::WebFormElement& form) override; |
115 void DidChangeScrollOffset() override; | 116 void DidChangeScrollOffset() override; |
116 | 117 |
117 // Pass-through from LegacyAutofillAgent. This correlates with the | 118 // Pass-through from LegacyAutofillAgent. This correlates with the |
118 // RenderViewObserver method. | 119 // RenderViewObserver method. |
119 void FocusedNodeChanged(const blink::WebNode& node); | 120 void FocusedNodeChanged(const blink::WebNode& node); |
| 121 void FocusChangeComplete(); |
120 | 122 |
121 // PageClickListener: | 123 // PageClickListener: |
122 void FormControlElementClicked(const blink::WebFormControlElement& element, | 124 void FormControlElementClicked(const blink::WebFormControlElement& element, |
123 bool was_focused) override; | 125 bool was_focused) override; |
124 | 126 |
125 // blink::WebAutofillClient: | 127 // blink::WebAutofillClient: |
126 virtual void textFieldDidEndEditing( | 128 virtual void textFieldDidEndEditing( |
127 const blink::WebInputElement& element); | 129 const blink::WebInputElement& element); |
128 virtual void textFieldDidChange( | 130 virtual void textFieldDidChange( |
129 const blink::WebFormControlElement& element); | 131 const blink::WebFormControlElement& element); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 bool is_popup_possibly_visible_; | 260 bool is_popup_possibly_visible_; |
259 | 261 |
260 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 262 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
261 | 263 |
262 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 264 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
263 }; | 265 }; |
264 | 266 |
265 } // namespace autofill | 267 } // namespace autofill |
266 | 268 |
267 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 269 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |