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

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

Issue 141523005: Combobox: Rename styles to STYLE_NORMAL and STYLE_ACTION and modify behaviors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix for Windows Created 6 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 (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/location.h" 10 #include "base/location.h"
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 ValidateGroup(*group, VALIDATE_EDIT); 1685 ValidateGroup(*group, VALIDATE_EDIT);
1686 } 1686 }
1687 1687
1688 // Show an error bubble when the user focuses the input. 1688 // Show an error bubble when the user focuses the input.
1689 if (focused_now) { 1689 if (focused_now) {
1690 focused_now->ScrollRectToVisible(focused_now->GetLocalBounds()); 1690 focused_now->ScrollRectToVisible(focused_now->GetLocalBounds());
1691 ShowErrorBubbleForViewIfNecessary(focused_now); 1691 ShowErrorBubbleForViewIfNecessary(focused_now);
1692 } 1692 }
1693 } 1693 }
1694 1694
1695 void AutofillDialogViews::OnSelectedIndexChanged(views::Combobox* combobox) { 1695 void AutofillDialogViews::OnPerformAction(views::Combobox* combobox) {
1696 DialogSection section = GroupForView(combobox)->section; 1696 DialogSection section = GroupForView(combobox)->section;
1697 InputEditedOrActivated(TypeForCombobox(combobox), gfx::Rect(), true); 1697 InputEditedOrActivated(TypeForCombobox(combobox), gfx::Rect(), true);
1698 // NOTE: |combobox| may have been deleted. 1698 // NOTE: |combobox| may have been deleted.
1699 ValidateGroup(*GroupForSection(section), VALIDATE_EDIT); 1699 ValidateGroup(*GroupForSection(section), VALIDATE_EDIT);
1700 SetEditabilityForSection(section); 1700 SetEditabilityForSection(section);
1701 } 1701 }
1702 1702
1703 void AutofillDialogViews::StyledLabelLinkClicked(const gfx::Range& range, 1703 void AutofillDialogViews::StyledLabelLinkClicked(const gfx::Range& range,
1704 int event_flags) { 1704 int event_flags) {
1705 delegate_->LegalDocumentLinkClicked(range); 1705 delegate_->LegalDocumentLinkClicked(range);
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2451 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2452 : section(section), 2452 : section(section),
2453 container(NULL), 2453 container(NULL),
2454 manual_input(NULL), 2454 manual_input(NULL),
2455 suggested_info(NULL), 2455 suggested_info(NULL),
2456 suggested_button(NULL) {} 2456 suggested_button(NULL) {}
2457 2457
2458 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2458 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2459 2459
2460 } // namespace autofill 2460 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698