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

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

Issue 1870573003: Full Keyboard Access: Second Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "ui/views/controls/menu/menu_runner.h" 56 #include "ui/views/controls/menu/menu_runner.h"
57 #include "ui/views/controls/separator.h" 57 #include "ui/views/controls/separator.h"
58 #include "ui/views/controls/styled_label.h" 58 #include "ui/views/controls/styled_label.h"
59 #include "ui/views/controls/textfield/textfield.h" 59 #include "ui/views/controls/textfield/textfield.h"
60 #include "ui/views/controls/webview/webview.h" 60 #include "ui/views/controls/webview/webview.h"
61 #include "ui/views/layout/box_layout.h" 61 #include "ui/views/layout/box_layout.h"
62 #include "ui/views/layout/fill_layout.h" 62 #include "ui/views/layout/fill_layout.h"
63 #include "ui/views/layout/grid_layout.h" 63 #include "ui/views/layout/grid_layout.h"
64 #include "ui/views/layout/layout_constants.h" 64 #include "ui/views/layout/layout_constants.h"
65 #include "ui/views/painter.h" 65 #include "ui/views/painter.h"
66 #include "ui/views/style/platform_style.h"
66 #include "ui/views/view_targeter.h" 67 #include "ui/views/view_targeter.h"
67 #include "ui/views/widget/widget.h" 68 #include "ui/views/widget/widget.h"
68 #include "ui/views/window/dialog_client_view.h" 69 #include "ui/views/window/dialog_client_view.h"
69 #include "ui/views/window/non_client_view.h" 70 #include "ui/views/window/non_client_view.h"
70 71
71 namespace autofill { 72 namespace autofill {
72 73
73 namespace { 74 namespace {
74 75
75 // The width for the section container. 76 // The width for the section container.
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 const int kFocusBorderWidth = 1; 617 const int kFocusBorderWidth = 1;
617 SetBorder(views::Border::CreateEmptyBorder(kMenuButtonTopInset, 618 SetBorder(views::Border::CreateEmptyBorder(kMenuButtonTopInset,
618 kFocusBorderWidth, 619 kFocusBorderWidth,
619 kMenuButtonBottomInset, 620 kMenuButtonBottomInset,
620 kFocusBorderWidth)); 621 kFocusBorderWidth));
621 gfx::Insets insets = GetInsets(); 622 gfx::Insets insets = GetInsets();
622 insets += gfx::Insets(-kFocusBorderWidth, -kFocusBorderWidth, 623 insets += gfx::Insets(-kFocusBorderWidth, -kFocusBorderWidth,
623 -kFocusBorderWidth, -kFocusBorderWidth); 624 -kFocusBorderWidth, -kFocusBorderWidth);
624 SetFocusPainter( 625 SetFocusPainter(
625 views::Painter::CreateDashedFocusPainterWithInsets(insets)); 626 views::Painter::CreateDashedFocusPainterWithInsets(insets));
626 SetFocusable(true); 627 views::PlatformStyle::ConfigureFocus(views::PlatformStyle::CONTROL::BUTTON,
628 this);
627 } 629 }
628 630
629 AutofillDialogViews::SuggestedButton::~SuggestedButton() {} 631 AutofillDialogViews::SuggestedButton::~SuggestedButton() {}
630 632
631 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const { 633 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const {
632 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 634 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
633 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size(); 635 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size();
634 const gfx::Insets insets = GetInsets(); 636 const gfx::Insets insets = GetInsets();
635 size.Enlarge(insets.width(), insets.height()); 637 size.Enlarge(insets.width(), insets.height());
636 return size; 638 return size;
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 manual_input(NULL), 1910 manual_input(NULL),
1909 suggested_info(NULL), 1911 suggested_info(NULL),
1910 suggested_button(NULL) {} 1912 suggested_button(NULL) {}
1911 1913
1912 AutofillDialogViews::DetailsGroup::DetailsGroup(const DetailsGroup& other) = 1914 AutofillDialogViews::DetailsGroup::DetailsGroup(const DetailsGroup& other) =
1913 default; 1915 default;
1914 1916
1915 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1917 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1916 1918
1917 } // namespace autofill 1919 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698