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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup when resizing the viewport resulted in movement of the focused element. Created 6 years 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WillSubmitForm(blink::WebLocalFrame* frame, 70 void WillSubmitForm(blink::WebLocalFrame* frame,
71 const blink::WebFormElement& form) override; 71 const blink::WebFormElement& form) override;
72 void DidChangeScrollOffset(blink::WebLocalFrame* frame) override; 72 void DidChangeScrollOffset(blink::WebLocalFrame* frame) override;
73 void FocusedNodeChanged(const blink::WebNode& node) override; 73 void FocusedNodeChanged(const blink::WebNode& node) override;
74 void OrientationChangeEvent() override; 74 void OrientationChangeEvent() override;
75 void Resized() override; 75 void FocusedElementMovedOnResize() override;
76 void FrameWillClose(blink::WebFrame* frame) override; 76 void FrameWillClose(blink::WebFrame* frame) override;
77 77
78 AutofillAgent* agent_; 78 AutofillAgent* agent_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent); 80 DISALLOW_COPY_AND_ASSIGN(LegacyAutofillAgent);
81 }; 81 };
82 friend class LegacyAutofillAgent; 82 friend class LegacyAutofillAgent;
83 83
84 // Flags passed to ShowSuggestions. 84 // Flags passed to ShowSuggestions.
85 struct ShowSuggestionsOptions { 85 struct ShowSuggestionsOptions {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void DidFinishDocumentLoad() override; 120 void DidFinishDocumentLoad() override;
121 121
122 // Pass-throughs from LegacyAutofillAgent. These correlate with 122 // Pass-throughs from LegacyAutofillAgent. These correlate with
123 // RenderViewObserver methods. 123 // RenderViewObserver methods.
124 void FrameDetached(blink::WebFrame* frame); 124 void FrameDetached(blink::WebFrame* frame);
125 void WillSubmitForm(blink::WebLocalFrame* frame, 125 void WillSubmitForm(blink::WebLocalFrame* frame,
126 const blink::WebFormElement& form); 126 const blink::WebFormElement& form);
127 void DidChangeScrollOffset(blink::WebLocalFrame* frame); 127 void DidChangeScrollOffset(blink::WebLocalFrame* frame);
128 void FocusedNodeChanged(const blink::WebNode& node); 128 void FocusedNodeChanged(const blink::WebNode& node);
129 void OrientationChangeEvent(); 129 void OrientationChangeEvent();
130 void Resized(); 130 void FocusedElementMovedOnResize();
131 void LegacyFrameWillClose(blink::WebFrame* frame); 131 void LegacyFrameWillClose(blink::WebFrame* frame);
132 132
133 // PageClickListener: 133 // PageClickListener:
134 void FormControlElementClicked(const blink::WebFormControlElement& element, 134 void FormControlElementClicked(const blink::WebFormControlElement& element,
135 bool was_focused) override; 135 bool was_focused) override;
136 136
137 // blink::WebAutofillClient: 137 // blink::WebAutofillClient:
138 virtual void textFieldDidEndEditing( 138 virtual void textFieldDidEndEditing(
139 const blink::WebInputElement& element); 139 const blink::WebInputElement& element);
140 virtual void textFieldDidChange( 140 virtual void textFieldDidChange(
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 bool is_popup_possibly_visible_; 269 bool is_popup_possibly_visible_;
270 270
271 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 271 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
272 272
273 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 273 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
274 }; 274 };
275 275
276 } // namespace autofill 276 } // namespace autofill
277 277
278 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 278 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698