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

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

Issue 802833004: Autofill - get rid of one more RenderViewObserver method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #include "components/autofill/content/renderer/autofill_agent.h" 5 #include "components/autofill/content/renderer/autofill_agent.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 const WebInputElement* element = toWebInputElement(&web_element); 242 const WebInputElement* element = toWebInputElement(&web_element);
243 243
244 if (!element || !element->isEnabled() || element->isReadOnly() || 244 if (!element || !element->isEnabled() || element->isReadOnly() ||
245 !element->isTextField() || element->isPasswordField()) 245 !element->isTextField() || element->isPasswordField())
246 return; 246 return;
247 247
248 element_ = *element; 248 element_ = *element;
249 } 249 }
250 250
251 void AutofillAgent::OrientationChangeEvent() {
252 HidePopup();
253 }
254
255 void AutofillAgent::Resized() { 251 void AutofillAgent::Resized() {
256 HidePopup(); 252 HidePopup();
257 } 253 }
258 254
259 void AutofillAgent::LegacyFrameWillClose(blink::WebFrame* frame) { 255 void AutofillAgent::LegacyFrameWillClose(blink::WebFrame* frame) {
260 if (in_flight_request_form_.isNull()) 256 if (in_flight_request_form_.isNull())
261 return; 257 return;
262 258
263 for (blink::WebFrame* temp = render_frame()->GetWebFrame(); temp; 259 for (blink::WebFrame* temp = render_frame()->GetWebFrame(); temp;
264 temp = temp->parent()) { 260 temp = temp->parent()) {
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 void AutofillAgent::LegacyAutofillAgent::DidChangeScrollOffset( 821 void AutofillAgent::LegacyAutofillAgent::DidChangeScrollOffset(
826 WebLocalFrame* frame) { 822 WebLocalFrame* frame) {
827 agent_->DidChangeScrollOffset(frame); 823 agent_->DidChangeScrollOffset(frame);
828 } 824 }
829 825
830 void AutofillAgent::LegacyAutofillAgent::FocusedNodeChanged( 826 void AutofillAgent::LegacyAutofillAgent::FocusedNodeChanged(
831 const WebNode& node) { 827 const WebNode& node) {
832 agent_->FocusedNodeChanged(node); 828 agent_->FocusedNodeChanged(node);
833 } 829 }
834 830
835 void AutofillAgent::LegacyAutofillAgent::OrientationChangeEvent() {
836 agent_->OrientationChangeEvent();
837 }
838
839 void AutofillAgent::LegacyAutofillAgent::Resized() { 831 void AutofillAgent::LegacyAutofillAgent::Resized() {
840 agent_->Resized(); 832 agent_->Resized();
841 } 833 }
842 834
843 void AutofillAgent::LegacyAutofillAgent::FrameWillClose( 835 void AutofillAgent::LegacyAutofillAgent::FrameWillClose(
844 blink::WebFrame* frame) { 836 blink::WebFrame* frame) {
845 agent_->LegacyFrameWillClose(frame); 837 agent_->LegacyFrameWillClose(frame);
846 } 838 }
847 839
848 } // namespace autofill 840 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | components/autofill/core/browser/autofill_external_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698