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

Side by Side Diff: ui/views/style/platform_style.h

Issue 2151933002: DialogDelegate: allow platforms to prevent Cancel being default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test for mac Created 4 years, 5 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 | ui/views/style/platform_style.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 5 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_
6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 // Combobox::STYLE_NORMAL. 32 // Combobox::STYLE_NORMAL.
33 static const int kComboboxNormalArrowPadding; 33 static const int kComboboxNormalArrowPadding;
34 34
35 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON). 35 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON).
36 static const int kMinLabelButtonWidth; 36 static const int kMinLabelButtonWidth;
37 static const int kMinLabelButtonHeight; 37 static const int kMinLabelButtonHeight;
38 38
39 // Whether dialog-default buttons are given a bold font style. 39 // Whether dialog-default buttons are given a bold font style.
40 static const bool kDefaultLabelButtonHasBoldFont; 40 static const bool kDefaultLabelButtonHasBoldFont;
41 41
42 // Whether the default button for a dialog can be the Cancel button.
43 static const bool kDialogDefaultButtonCanBeCancel;
44
42 // Whether dragging vertically above or below a textfield's bounds selects to 45 // Whether dragging vertically above or below a textfield's bounds selects to
43 // the left or right end of the text from the cursor, respectively. 46 // the left or right end of the text from the cursor, respectively.
44 static const bool kTextfieldDragVerticallyDragsToEnd; 47 static const bool kTextfieldDragVerticallyDragsToEnd;
45 48
46 // The menu button's action to show the menu. 49 // The menu button's action to show the menu.
47 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
48 51
49 // Creates an ImageSkia containing the image to use for the combobox arrow. 52 // Creates an ImageSkia containing the image to use for the combobox arrow.
50 // The |is_enabled| argument is true if the control the arrow is for is 53 // The |is_enabled| argument is true if the control the arrow is for is
51 // enabled, and false if the control is disabled. The |style| argument is the 54 // enabled, and false if the control is disabled. The |style| argument is the
(...skipping 30 matching lines...) Expand all
82 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( 85 static std::unique_ptr<Border> CreateThemedLabelButtonBorder(
83 LabelButton* button); 86 LabelButton* button);
84 87
85 private: 88 private:
86 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
87 }; 90 };
88 91
89 } // namespace views 92 } // namespace views
90 93
91 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698