OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |