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

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

Issue 886663002: Rename FocusChangeComplete to ImeShownAnimationsComplete. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 #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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 WebElement web_element = node.toConst<WebElement>(); 215 WebElement web_element = node.toConst<WebElement>();
216 const WebInputElement* element = toWebInputElement(&web_element); 216 const WebInputElement* element = toWebInputElement(&web_element);
217 217
218 if (!element || !element->isEnabled() || element->isReadOnly() || 218 if (!element || !element->isEnabled() || element->isReadOnly() ||
219 !element->isTextField()) 219 !element->isTextField())
220 return; 220 return;
221 221
222 element_ = *element; 222 element_ = *element;
223 } 223 }
224 224
225 void AutofillAgent::FocusChangeComplete() { 225 void AutofillAgent::ImeShownAnimationsComplete() {
226 WebDocument doc = render_frame()->GetWebFrame()->document(); 226 WebDocument doc = render_frame()->GetWebFrame()->document();
227 WebElement focused_element; 227 WebElement focused_element;
228 if (!doc.isNull()) 228 if (!doc.isNull())
229 focused_element = doc.focusedElement(); 229 focused_element = doc.focusedElement();
230 230
231 if (!focused_element.isNull() && password_generation_agent_ && 231 if (!focused_element.isNull() && password_generation_agent_ &&
232 password_generation_agent_->FocusedNodeHasChanged(focused_element)) { 232 password_generation_agent_->FocusedNodeHasChanged(focused_element)) {
233 is_popup_possibly_visible_ = true; 233 is_popup_possibly_visible_ = true;
234 } 234 }
235 } 235 }
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 : content::RenderViewObserver(render_view), agent_(agent) { 777 : content::RenderViewObserver(render_view), agent_(agent) {
778 } 778 }
779 779
780 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() { 780 AutofillAgent::LegacyAutofillAgent::~LegacyAutofillAgent() {
781 } 781 }
782 782
783 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { 783 void AutofillAgent::LegacyAutofillAgent::OnDestruct() {
784 // No-op. Don't delete |this|. 784 // No-op. Don't delete |this|.
785 } 785 }
786 786
787 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { 787 void AutofillAgent::LegacyAutofillAgent::ImeShownAnimationsComplete() {
788 agent_->FocusChangeComplete(); 788 agent_->ImeShownAnimationsComplete();
789 } 789 }
790 790
791 } // namespace autofill 791 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698