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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 17391012: Implement 'invalid' AutocompleteErrorEvent#reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/autofill/autofill_dialog_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 } 1212 }
1213 } 1213 }
1214 // If we don't find a match, return the combobox to its default state. 1214 // If we don't find a match, return the combobox to its default state.
1215 combobox->SetSelectedIndex(combobox->model()->GetDefaultIndex()); 1215 combobox->SetSelectedIndex(combobox->model()->GetDefaultIndex());
1216 return; 1216 return;
1217 } 1217 }
1218 1218
1219 NOTREACHED(); 1219 NOTREACHED();
1220 } 1220 }
1221 1221
1222 void AutofillDialogViews::SetTextContentsOfSuggestionInput(
1223 DialogSection section,
1224 const base::string16& text) {
1225 GroupForSection(section)->suggested_info->decorated_textfield()->
1226 SetText(text);
1227 }
1228
1222 void AutofillDialogViews::ActivateInput(const DetailInput& input) { 1229 void AutofillDialogViews::ActivateInput(const DetailInput& input) {
1223 TextfieldEditedOrActivated(TextfieldForInput(input), false); 1230 TextfieldEditedOrActivated(TextfieldForInput(input), false);
1224 } 1231 }
1225 1232
1226 gfx::Size AutofillDialogViews::GetSize() const { 1233 gfx::Size AutofillDialogViews::GetSize() const {
1227 return GetWidget() ? GetWidget()->GetRootView()->size() : gfx::Size(); 1234 return GetWidget() ? GetWidget()->GetRootView()->size() : gfx::Size();
1228 } 1235 }
1229 1236
1230 bool AutofillDialogViews::AcceleratorPressed( 1237 bool AutofillDialogViews::AcceleratorPressed(
1231 const ui::Accelerator& accelerator) { 1238 const ui::Accelerator& accelerator) {
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2009 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2003 : section(section), 2010 : section(section),
2004 container(NULL), 2011 container(NULL),
2005 manual_input(NULL), 2012 manual_input(NULL),
2006 suggested_info(NULL), 2013 suggested_info(NULL),
2007 suggested_button(NULL) {} 2014 suggested_button(NULL) {}
2008 2015
2009 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2016 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2010 2017
2011 } // namespace autofill 2018 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698