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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FrameDetached(blink::WebFrame* frame) override; | 69 void FrameDetached(blink::WebFrame* frame) override; |
70 void FocusedNodeChanged(const blink::WebNode& node) override; | 70 void FocusedNodeChanged(const blink::WebNode& node) override; |
71 void Resized() override; | 71 void FocusedElementMovedOnResize() override; |
| 72 void FocusChangeComplete() override; |
72 void FrameWillClose(blink::WebFrame* frame) override; | 73 void FrameWillClose(blink::WebFrame* frame) override; |
73 | 74 |
74 AutofillAgent* agent_; | 75 AutofillAgent* agent_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); | 77 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); |
77 }; | 78 }; |
78 friend class LegacyAutofillAgent; | 79 friend class LegacyAutofillAgent; |
79 | 80 |
80 // Flags passed to ShowSuggestions. | 81 // Flags passed to ShowSuggestions. |
81 struct ShowSuggestionsOptions { | 82 struct ShowSuggestionsOptions { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool OnMessageReceived(const IPC::Message& message) override; | 115 bool OnMessageReceived(const IPC::Message& message) override; |
115 void DidCommitProvisionalLoad(bool is_new_navigation) override; | 116 void DidCommitProvisionalLoad(bool is_new_navigation) override; |
116 void DidFinishDocumentLoad() override; | 117 void DidFinishDocumentLoad() override; |
117 void WillSubmitForm(const blink::WebFormElement& form) override; | 118 void WillSubmitForm(const blink::WebFormElement& form) override; |
118 void DidChangeScrollOffset() override; | 119 void DidChangeScrollOffset() override; |
119 | 120 |
120 // Pass-throughs from LegacyAutofillAgent. These correlate with | 121 // Pass-throughs from LegacyAutofillAgent. These correlate with |
121 // RenderViewObserver methods. | 122 // RenderViewObserver methods. |
122 void FrameDetached(blink::WebFrame* frame); | 123 void FrameDetached(blink::WebFrame* frame); |
123 void FocusedNodeChanged(const blink::WebNode& node); | 124 void FocusedNodeChanged(const blink::WebNode& node); |
124 void Resized(); | 125 void FocusedElementMovedOnResize(); |
| 126 void FocusChangeComplete(); |
125 void LegacyFrameWillClose(blink::WebFrame* frame); | 127 void LegacyFrameWillClose(blink::WebFrame* frame); |
126 | 128 |
127 // PageClickListener: | 129 // PageClickListener: |
128 void FormControlElementClicked(const blink::WebFormControlElement& element, | 130 void FormControlElementClicked(const blink::WebFormControlElement& element, |
129 bool was_focused) override; | 131 bool was_focused) override; |
130 | 132 |
131 // blink::WebAutofillClient: | 133 // blink::WebAutofillClient: |
132 virtual void textFieldDidEndEditing( | 134 virtual void textFieldDidEndEditing( |
133 const blink::WebInputElement& element); | 135 const blink::WebInputElement& element); |
134 virtual void textFieldDidChange( | 136 virtual void textFieldDidChange( |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 bool is_popup_possibly_visible_; | 265 bool is_popup_possibly_visible_; |
264 | 266 |
265 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 267 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
266 | 268 |
267 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 269 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
268 }; | 270 }; |
269 | 271 |
270 } // namespace autofill | 272 } // namespace autofill |
271 | 273 |
272 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 274 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |