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

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

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FocusManagerTest.StoreFocusedView 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
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::SetControlStyleFocus(this);
627 } 628 }
628 629
629 AutofillDialogViews::SuggestedButton::~SuggestedButton() {} 630 AutofillDialogViews::SuggestedButton::~SuggestedButton() {}
630 631
631 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const { 632 gfx::Size AutofillDialogViews::SuggestedButton::GetPreferredSize() const {
632 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 633 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
633 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size(); 634 gfx::Size size = rb.GetImageNamed(ResourceIDForState()).Size();
634 const gfx::Insets insets = GetInsets(); 635 const gfx::Insets insets = GetInsets();
635 size.Enlarge(insets.width(), insets.height()); 636 size.Enlarge(insets.width(), insets.height());
636 return size; 637 return size;
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 1906 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
1906 : section(section), 1907 : section(section),
1907 container(NULL), 1908 container(NULL),
1908 manual_input(NULL), 1909 manual_input(NULL),
1909 suggested_info(NULL), 1910 suggested_info(NULL),
1910 suggested_button(NULL) {} 1911 suggested_button(NULL) {}
1911 1912
1912 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1913 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1913 1914
1914 } // namespace autofill 1915 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698