Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 854943002: Remove RenderViewObserver::Resized (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test compile Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 Resized() override;
71 70
72 AutofillAgent* agent_; 71 AutofillAgent* agent_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); 73 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent);
75 }; 74 };
76 friend class LegacyAutofillAgent; 75 friend class LegacyAutofillAgent;
77 76
78 // Flags passed to ShowSuggestions. 77 // Flags passed to ShowSuggestions.
79 struct ShowSuggestionsOptions { 78 struct ShowSuggestionsOptions {
80 // All fields are default initialized to false. 79 // All fields are default initialized to false.
(...skipping 27 matching lines...) Expand all
108 bool show_password_suggestions_only; 107 bool show_password_suggestions_only;
109 }; 108 };
110 109
111 // content::RenderFrameObserver: 110 // content::RenderFrameObserver:
112 bool OnMessageReceived(const IPC::Message& message) override; 111 bool OnMessageReceived(const IPC::Message& message) override;
113 void DidCommitProvisionalLoad(bool is_new_navigation) override; 112 void DidCommitProvisionalLoad(bool is_new_navigation) override;
114 void DidFinishDocumentLoad() override; 113 void DidFinishDocumentLoad() override;
115 void WillSubmitForm(const blink::WebFormElement& form) override; 114 void WillSubmitForm(const blink::WebFormElement& form) override;
116 void DidChangeScrollOffset() override; 115 void DidChangeScrollOffset() override;
117 116
118 // Pass-throughs from LegacyAutofillAgent. These correlate with 117 // Pass-through from LegacyAutofillAgent. This correlates with the
119 // RenderViewObserver methods. 118 // RenderViewObserver method.
120 void FocusedNodeChanged(const blink::WebNode& node); 119 void FocusedNodeChanged(const blink::WebNode& node);
121 void Resized();
122 120
123 // PageClickListener: 121 // PageClickListener:
124 void FormControlElementClicked(const blink::WebFormControlElement& element, 122 void FormControlElementClicked(const blink::WebFormControlElement& element,
125 bool was_focused) override; 123 bool was_focused) override;
126 124
127 // blink::WebAutofillClient: 125 // blink::WebAutofillClient:
128 virtual void textFieldDidEndEditing( 126 virtual void textFieldDidEndEditing(
129 const blink::WebInputElement& element); 127 const blink::WebInputElement& element);
130 virtual void textFieldDidChange( 128 virtual void textFieldDidChange(
131 const blink::WebFormControlElement& element); 129 const blink::WebFormControlElement& element);
(...skipping 19 matching lines...) Expand all
151 // For external Autofill selection. 149 // For external Autofill selection.
152 void OnClearForm(); 150 void OnClearForm();
153 void OnClearPreviewedForm(); 151 void OnClearPreviewedForm();
154 void OnFillFieldWithValue(const base::string16& value); 152 void OnFillFieldWithValue(const base::string16& value);
155 void OnPreviewFieldWithValue(const base::string16& value); 153 void OnPreviewFieldWithValue(const base::string16& value);
156 void OnAcceptDataListSuggestion(const base::string16& value); 154 void OnAcceptDataListSuggestion(const base::string16& value);
157 void OnFillPasswordSuggestion(const base::string16& username, 155 void OnFillPasswordSuggestion(const base::string16& username,
158 const base::string16& password); 156 const base::string16& password);
159 void OnPreviewPasswordSuggestion(const base::string16& username, 157 void OnPreviewPasswordSuggestion(const base::string16& username,
160 const base::string16& password); 158 const base::string16& password);
159 void OnPopupHidden();
161 160
162 // Called when interactive autocomplete finishes. |message| is printed to 161 // Called when interactive autocomplete finishes. |message| is printed to
163 // the console if non-empty. 162 // the console if non-empty.
164 void OnRequestAutocompleteResult( 163 void OnRequestAutocompleteResult(
165 blink::WebFormElement::AutocompleteResult result, 164 blink::WebFormElement::AutocompleteResult result,
166 const base::string16& message, 165 const base::string16& message,
167 const FormData& form_data); 166 const FormData& form_data);
168 167
169 // Called when an autocomplete request succeeds or fails with the |result|. 168 // Called when an autocomplete request succeeds or fails with the |result|.
170 void FinishAutocompleteRequest( 169 void FinishAutocompleteRequest(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 bool is_popup_possibly_visible_; 258 bool is_popup_possibly_visible_;
260 259
261 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 260 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
262 261
263 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 262 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
264 }; 263 };
265 264
266 } // namespace autofill 265 } // namespace autofill
267 266
268 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 267 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/content/common/autofill_messages.h ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698