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

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

Issue 2664603002: Remove replaceComposition() calls in finishComposingText. (Closed)
Patch Set: Rebase Created 3 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <tuple> 9 #include <tuple>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 if (password_generation_agent_ && 293 if (password_generation_agent_ &&
294 password_generation_agent_->FocusedNodeHasChanged(focused_element)) { 294 password_generation_agent_->FocusedNodeHasChanged(focused_element)) {
295 is_generation_popup_possibly_visible_ = true; 295 is_generation_popup_possibly_visible_ = true;
296 is_popup_possibly_visible_ = true; 296 is_popup_possibly_visible_ = true;
297 } 297 }
298 if (password_autofill_agent_) 298 if (password_autofill_agent_)
299 password_autofill_agent_->FocusedNodeHasChanged(focused_element); 299 password_autofill_agent_->FocusedNodeHasChanged(focused_element);
300 } 300 }
301 } 301 }
302 302
303 void AutofillAgent::setIgnoreTextChanges(bool ignore) {
304 ignore_text_changes_ = ignore;
305 }
306
307 void AutofillAgent::FormControlElementClicked( 303 void AutofillAgent::FormControlElementClicked(
308 const WebFormControlElement& element, 304 const WebFormControlElement& element,
309 bool was_focused) { 305 bool was_focused) {
310 // TODO(estade): Remove this check when PageClickTracker is per-frame. 306 // TODO(estade): Remove this check when PageClickTracker is per-frame.
311 if (element.document().frame() != render_frame()->GetWebFrame()) 307 if (element.document().frame() != render_frame()->GetWebFrame())
312 return; 308 return;
313 309
314 const WebInputElement* input_element = toWebInputElement(&element); 310 const WebInputElement* input_element = toWebInputElement(&element);
315 if (!input_element && !form_util::IsTextAreaElement(element)) 311 if (!input_element && !form_util::IsTextAreaElement(element))
316 return; 312 return;
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { 817 void AutofillAgent::LegacyAutofillAgent::OnDestruct() {
822 // No-op. Don't delete |this|. 818 // No-op. Don't delete |this|.
823 } 819 }
824 820
825 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { 821 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() {
826 if (agent_) 822 if (agent_)
827 agent_->FocusChangeComplete(); 823 agent_->FocusChangeComplete();
828 } 824 }
829 825
830 } // namespace autofill 826 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698