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

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

Issue 1682603002: [UI Views] Don't allow a ButtonListener and a MenuButtonListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 bool AutofillDialogViews::SectionContainer::ShouldForwardEvent( 605 bool AutofillDialogViews::SectionContainer::ShouldForwardEvent(
606 const ui::LocatedEvent& event) { 606 const ui::LocatedEvent& event) {
607 // Always forward events on the label bar. 607 // Always forward events on the label bar.
608 return forward_mouse_events_ || event.y() <= child_at(0)->bounds().bottom(); 608 return forward_mouse_events_ || event.y() <= child_at(0)->bounds().bottom();
609 } 609 }
610 610
611 // AutofillDialogViews::SuggestedButton ---------------------------------------- 611 // AutofillDialogViews::SuggestedButton ----------------------------------------
612 612
613 AutofillDialogViews::SuggestedButton::SuggestedButton( 613 AutofillDialogViews::SuggestedButton::SuggestedButton(
614 views::MenuButtonListener* listener) 614 views::MenuButtonListener* listener)
615 : views::MenuButton(NULL, base::string16(), listener, false) { 615 : views::MenuButton(base::string16(), listener, false) {
616 const int kFocusBorderWidth = 1; 616 const int kFocusBorderWidth = 1;
617 SetBorder(views::Border::CreateEmptyBorder(kMenuButtonTopInset, 617 SetBorder(views::Border::CreateEmptyBorder(kMenuButtonTopInset,
618 kFocusBorderWidth, 618 kFocusBorderWidth,
619 kMenuButtonBottomInset, 619 kMenuButtonBottomInset,
620 kFocusBorderWidth)); 620 kFocusBorderWidth));
621 gfx::Insets insets = GetInsets(); 621 gfx::Insets insets = GetInsets();
622 insets += gfx::Insets(-kFocusBorderWidth, -kFocusBorderWidth, 622 insets += gfx::Insets(-kFocusBorderWidth, -kFocusBorderWidth,
623 -kFocusBorderWidth, -kFocusBorderWidth); 623 -kFocusBorderWidth, -kFocusBorderWidth);
624 SetFocusPainter( 624 SetFocusPainter(
625 views::Painter::CreateDashedFocusPainterWithInsets(insets)); 625 views::Painter::CreateDashedFocusPainterWithInsets(insets));
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 1904 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
1905 : section(section), 1905 : section(section),
1906 container(NULL), 1906 container(NULL),
1907 manual_input(NULL), 1907 manual_input(NULL),
1908 suggested_info(NULL), 1908 suggested_info(NULL),
1909 suggested_button(NULL) {} 1909 suggested_button(NULL) {}
1910 1910
1911 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1911 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1912 1912
1913 } // namespace autofill 1913 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698