| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // to RenderFrameObserver. Should eventually be removed. | 59 // to RenderFrameObserver. Should eventually be removed. |
| 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 FocusChangeComplete() override; | 69 void ImeShownAnimationsComplete() override; |
| 70 | 70 |
| 71 AutofillAgent* agent_; | 71 AutofillAgent* agent_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); | 73 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); |
| 74 }; | 74 }; |
| 75 friend class LegacyAutofillAgent; | 75 friend class LegacyAutofillAgent; |
| 76 | 76 |
| 77 // Flags passed to ShowSuggestions. | 77 // Flags passed to ShowSuggestions. |
| 78 struct ShowSuggestionsOptions { | 78 struct ShowSuggestionsOptions { |
| 79 // All fields are default initialized to false. | 79 // All fields are default initialized to false. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 110 // content::RenderFrameObserver: | 110 // content::RenderFrameObserver: |
| 111 bool OnMessageReceived(const IPC::Message& message) override; | 111 bool OnMessageReceived(const IPC::Message& message) override; |
| 112 void DidCommitProvisionalLoad(bool is_new_navigation) override; | 112 void DidCommitProvisionalLoad(bool is_new_navigation) override; |
| 113 void DidFinishDocumentLoad() override; | 113 void DidFinishDocumentLoad() override; |
| 114 void WillSubmitForm(const blink::WebFormElement& form) override; | 114 void WillSubmitForm(const blink::WebFormElement& form) override; |
| 115 void DidChangeScrollOffset() override; | 115 void DidChangeScrollOffset() override; |
| 116 void FocusedNodeChanged(const blink::WebNode& node) override; | 116 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 117 | 117 |
| 118 // Pass-through from LegacyAutofillAgent. This correlates with the | 118 // Pass-through from LegacyAutofillAgent. This correlates with the |
| 119 // RenderViewObserver method. | 119 // RenderViewObserver method. |
| 120 void FocusChangeComplete(); | 120 void ImeShownAnimationsComplete(); |
| 121 | 121 |
| 122 // PageClickListener: | 122 // PageClickListener: |
| 123 void FormControlElementClicked(const blink::WebFormControlElement& element, | 123 void FormControlElementClicked(const blink::WebFormControlElement& element, |
| 124 bool was_focused) override; | 124 bool was_focused) override; |
| 125 | 125 |
| 126 // blink::WebAutofillClient: | 126 // blink::WebAutofillClient: |
| 127 virtual void textFieldDidEndEditing( | 127 virtual void textFieldDidEndEditing( |
| 128 const blink::WebInputElement& element); | 128 const blink::WebInputElement& element); |
| 129 virtual void textFieldDidChange( | 129 virtual void textFieldDidChange( |
| 130 const blink::WebFormControlElement& element); | 130 const blink::WebFormControlElement& element); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 bool is_popup_possibly_visible_; | 258 bool is_popup_possibly_visible_; |
| 259 | 259 |
| 260 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 260 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 261 | 261 |
| 262 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 262 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 } // namespace autofill | 265 } // namespace autofill |
| 266 | 266 |
| 267 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 267 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |