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

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

Issue 1894383002: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
Patch Set: Rebased Created 4 years, 7 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
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));
626 SetFocusBehavior(FocusBehavior::ALWAYS); 626 Button::ConfigureDefaultFocus(this);
627 } 627 }
628 628
629 AutofillDialogViews::SuggestedButton::~SuggestedButton() {} 629 AutofillDialogViews::SuggestedButton::~SuggestedButton() {}
630 630
631 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const { 631 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const {
632 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 632 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
633 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size(); 633 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size();
634 const gfx::Insets insets = GetInsets(); 634 const gfx::Insets insets = GetInsets();
635 size.Enlarge(insets.width(), insets.height()); 635 size.Enlarge(insets.width(), insets.height());
636 return size; 636 return size;
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 manual_input(NULL), 1908 manual_input(NULL),
1909 suggested_info(NULL), 1909 suggested_info(NULL),
1910 suggested_button(NULL) {} 1910 suggested_button(NULL) {}
1911 1911
1912 AutofillDialogViews::DetailsGroup::DetailsGroup(const DetailsGroup& other) = 1912 AutofillDialogViews::DetailsGroup::DetailsGroup(const DetailsGroup& other) =
1913 default; 1913 default;
1914 1914
1915 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1915 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1916 1916
1917 } // namespace autofill 1917 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698