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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.cc

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 #include "components/autofill/core/browser/autofill_external_delegate.h" 5 #include "components/autofill/core/browser/autofill_external_delegate.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/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 data_list_labels); 183 data_list_labels);
184 } 184 }
185 185
186 void AutofillExternalDelegate::OnPopupShown() { 186 void AutofillExternalDelegate::OnPopupShown() {
187 manager_->DidShowSuggestions( 187 manager_->DidShowSuggestions(
188 has_suggestion_ && !has_shown_popup_for_current_edit_); 188 has_suggestion_ && !has_shown_popup_for_current_edit_);
189 has_shown_popup_for_current_edit_ |= has_suggestion_; 189 has_shown_popup_for_current_edit_ |= has_suggestion_;
190 } 190 }
191 191
192 void AutofillExternalDelegate::OnPopupHidden() { 192 void AutofillExternalDelegate::OnPopupHidden() {
193 driver_->PopupHidden();
193 } 194 }
194 195
195 void AutofillExternalDelegate::DidSelectSuggestion( 196 void AutofillExternalDelegate::DidSelectSuggestion(
196 const base::string16& value, 197 const base::string16& value,
197 int identifier) { 198 int identifier) {
198 ClearPreviewedForm(); 199 ClearPreviewedForm();
199 200
200 // Only preview the data if it is a profile. 201 // Only preview the data if it is a profile.
201 if (identifier > 0) 202 if (identifier > 0)
202 FillAutofillFormData(identifier, true); 203 FillAutofillFormData(identifier, true);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 404 }
404 } 405 }
405 406
406 #if defined(OS_MACOSX) && !defined(OS_IOS) 407 #if defined(OS_MACOSX) && !defined(OS_IOS)
407 void AutofillExternalDelegate::PingRenderer() { 408 void AutofillExternalDelegate::PingRenderer() {
408 driver_->PingRenderer(); 409 driver_->PingRenderer();
409 } 410 }
410 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 411 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
411 412
412 } // namespace autofill 413 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_driver.h ('k') | components/autofill/core/browser/test_autofill_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698