Chromium Code Reviews| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 // PasswordGenerationAgent may be NULL. If it is not, then it is also | 51 // PasswordGenerationAgent may be NULL. If it is not, then it is also |
| 52 // guaranteed to outlive AutofillAgent. | 52 // guaranteed to outlive AutofillAgent. |
| 53 AutofillAgent(content::RenderView* render_view, | 53 AutofillAgent(content::RenderView* render_view, |
| 54 PasswordAutofillAgent* password_autofill_manager, | 54 PasswordAutofillAgent* password_autofill_manager, |
| 55 PasswordGenerationAgent* password_generation_agent); | 55 PasswordGenerationAgent* password_generation_agent); |
| 56 virtual ~AutofillAgent(); | 56 virtual ~AutofillAgent(); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // content::RenderViewObserver: | 59 // content::RenderViewObserver: |
| 60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 61 virtual void DidFinishDocumentLoad(blink::WebFrame* frame) OVERRIDE; | 61 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 62 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 62 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; |
| 63 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 63 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; |
| 64 virtual void WillSubmitForm(blink::WebFrame* frame, | 64 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 65 const blink::WebFormElement& form) OVERRIDE; | 65 const blink::WebFormElement& form) OVERRIDE; |
| 66 virtual void ZoomLevelChanged() OVERRIDE; | 66 virtual void ZoomLevelChanged() OVERRIDE; |
| 67 virtual void DidChangeScrollOffset(blink::WebFrame* frame) OVERRIDE; | 67 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) OVERRIDE; |
| 68 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; | 68 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; |
| 69 virtual void OrientationChangeEvent(int orientation) OVERRIDE; | 69 virtual void OrientationChangeEvent(int orientation) OVERRIDE; |
| 70 | 70 |
| 71 // PageClickListener: | 71 // PageClickListener: |
| 72 virtual void FormControlElementClicked( | 72 virtual void FormControlElementClicked( |
| 73 const blink::WebFormControlElement& element, | 73 const blink::WebFormControlElement& element, |
| 74 bool was_focused) OVERRIDE; | 74 bool was_focused) OVERRIDE; |
| 75 virtual void FormControlElementLostFocus() OVERRIDE; | 75 virtual void FormControlElementLostFocus() OVERRIDE; |
| 76 | 76 |
| 77 // blink::WebAutofillClient: | 77 // blink::WebAutofillClient: |
| 78 virtual void textFieldDidEndEditing( | 78 virtual void textFieldDidEndEditing( |
| 79 const blink::WebInputElement& element) OVERRIDE; | 79 const blink::WebInputElement& element) OVERRIDE; |
| 80 virtual void textFieldDidChange( | 80 virtual void textFieldDidChange( |
| 81 const blink::WebFormControlElement& element); | 81 const blink::WebFormControlElement& element); |
| 82 virtual void textFieldDidReceiveKeyDown( | 82 virtual void textFieldDidReceiveKeyDown( |
| 83 const blink::WebInputElement& element, | 83 const blink::WebInputElement& element, |
| 84 const blink::WebKeyboardEvent& event) OVERRIDE; | 84 const blink::WebKeyboardEvent& event) OVERRIDE; |
| 85 virtual void didRequestAutocomplete( | 85 virtual void didRequestAutocomplete(blink::WebLocalFrame* frame, |
| 86 blink::WebFrame* frame, | 86 const blink::WebFormElement& form) |
| 87 const blink::WebFormElement& form) OVERRIDE; | 87 OVERRIDE; |
|
jam
2014/04/05 00:12:39
again, please leave formatting the same which rena
jam
2014/04/07 21:16:33
this seems worse readability-wise, and i'm pretty
dcheng
2014/04/07 22:19:20
Done.
| |
| 88 virtual void setIgnoreTextChanges(bool ignore) OVERRIDE; | 88 virtual void setIgnoreTextChanges(bool ignore) OVERRIDE; |
| 89 virtual void didAssociateFormControls( | 89 virtual void didAssociateFormControls( |
| 90 const blink::WebVector<blink::WebNode>& nodes) OVERRIDE; | 90 const blink::WebVector<blink::WebNode>& nodes) OVERRIDE; |
| 91 virtual void openTextDataListChooser(const blink::WebInputElement& element); | 91 virtual void openTextDataListChooser(const blink::WebInputElement& element); |
| 92 | 92 |
| 93 void OnFieldTypePredictionsAvailable( | 93 void OnFieldTypePredictionsAvailable( |
| 94 const std::vector<FormDataPredictions>& forms); | 94 const std::vector<FormDataPredictions>& forms); |
| 95 void OnFillForm(int query_id, const FormData& form); | 95 void OnFillForm(int query_id, const FormData& form); |
| 96 void OnPreviewForm(int query_id, const FormData& form); | 96 void OnPreviewForm(int query_id, const FormData& form); |
| 97 | 97 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 NoCancelOnSubframeNavigateAfterDone); | 235 NoCancelOnSubframeNavigateAfterDone); |
| 236 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | 236 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, |
| 237 InvokingTwiceOnlyShowsOnce); | 237 InvokingTwiceOnlyShowsOnce); |
| 238 | 238 |
| 239 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 239 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace autofill | 242 } // namespace autofill |
| 243 | 243 |
| 244 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 244 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |