| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // PasswordGenerationAgent may be NULL. If it is not, then it is also | 52 // PasswordGenerationAgent may be NULL. If it is not, then it is also |
| 53 // guaranteed to outlive AutofillAgent. | 53 // guaranteed to outlive AutofillAgent. |
| 54 AutofillAgent(content::RenderView* render_view, | 54 AutofillAgent(content::RenderView* render_view, |
| 55 PasswordAutofillAgent* password_autofill_manager, | 55 PasswordAutofillAgent* password_autofill_manager, |
| 56 PasswordGenerationAgent* password_generation_agent); | 56 PasswordGenerationAgent* password_generation_agent); |
| 57 virtual ~AutofillAgent(); | 57 virtual ~AutofillAgent(); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // content::RenderViewObserver: | 60 // content::RenderViewObserver: |
| 61 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 61 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 62 virtual void DidFinishDocumentLoad(blink::WebFrame* frame) OVERRIDE; | 62 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 63 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 63 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; |
| 64 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 64 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; |
| 65 virtual void WillSubmitForm(blink::WebFrame* frame, | 65 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 66 const blink::WebFormElement& form) OVERRIDE; | 66 const blink::WebFormElement& form) OVERRIDE; |
| 67 virtual void ZoomLevelChanged() OVERRIDE; | 67 virtual void ZoomLevelChanged() OVERRIDE; |
| 68 virtual void DidChangeScrollOffset(blink::WebFrame* frame) OVERRIDE; | 68 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) OVERRIDE; |
| 69 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; | 69 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; |
| 70 virtual void OrientationChangeEvent(int orientation) OVERRIDE; | 70 virtual void OrientationChangeEvent(int orientation) OVERRIDE; |
| 71 | 71 |
| 72 // PageClickListener: | 72 // PageClickListener: |
| 73 virtual void FormControlElementClicked( | 73 virtual void FormControlElementClicked( |
| 74 const blink::WebFormControlElement& element, | 74 const blink::WebFormControlElement& element, |
| 75 bool was_focused) OVERRIDE; | 75 bool was_focused) OVERRIDE; |
| 76 virtual void FormControlElementLostFocus() OVERRIDE; | 76 virtual void FormControlElementLostFocus() OVERRIDE; |
| 77 | 77 |
| 78 // blink::WebAutofillClient: | 78 // blink::WebAutofillClient: |
| 79 virtual void textFieldDidEndEditing( | 79 virtual void textFieldDidEndEditing( |
| 80 const blink::WebInputElement& element); | 80 const blink::WebInputElement& element); |
| 81 virtual void textFieldDidChange( | 81 virtual void textFieldDidChange( |
| 82 const blink::WebFormControlElement& element); | 82 const blink::WebFormControlElement& element); |
| 83 virtual void textFieldDidReceiveKeyDown( | 83 virtual void textFieldDidReceiveKeyDown( |
| 84 const blink::WebInputElement& element, | 84 const blink::WebInputElement& element, |
| 85 const blink::WebKeyboardEvent& event); | 85 const blink::WebKeyboardEvent& event); |
| 86 // TODO(estade): remove this. | 86 // TODO(estade): remove this. |
| 87 virtual void didRequestAutocomplete( | 87 virtual void didRequestAutocomplete( |
| 88 blink::WebFrame* frame, | 88 blink::WebLocalFrame* frame, |
| 89 const blink::WebFormElement& form); | 89 const blink::WebFormElement& form); |
| 90 virtual void didRequestAutocomplete( | 90 virtual void didRequestAutocomplete( |
| 91 const blink::WebFormElement& form, | 91 const blink::WebFormElement& form, |
| 92 const blink::WebAutocompleteParams& details); | 92 const blink::WebAutocompleteParams& details); |
| 93 virtual void setIgnoreTextChanges(bool ignore); | 93 virtual void setIgnoreTextChanges(bool ignore); |
| 94 virtual void didAssociateFormControls( | 94 virtual void didAssociateFormControls( |
| 95 const blink::WebVector<blink::WebNode>& nodes); | 95 const blink::WebVector<blink::WebNode>& nodes); |
| 96 virtual void openTextDataListChooser(const blink::WebInputElement& element); | 96 virtual void openTextDataListChooser(const blink::WebInputElement& element); |
| 97 | 97 |
| 98 void OnFieldTypePredictionsAvailable( | 98 void OnFieldTypePredictionsAvailable( |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 NoCancelOnSubframeNavigateAfterDone); | 240 NoCancelOnSubframeNavigateAfterDone); |
| 241 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 241 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
| 242 InvokingTwiceOnlyShowsOnce); | 242 InvokingTwiceOnlyShowsOnce); |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 244 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 } // namespace autofill | 247 } // namespace autofill |
| 248 | 248 |
| 249 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 249 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |