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

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

Issue 1865063004: views: support vertical-drag-to-end on textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on win/linux 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
« no previous file with comments | « ui/views/controls/textfield/textfield_unittest.cc ('k') | 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 16 matching lines...) Expand all
27 // Type used by LabelButton to map button states to text colors. 27 // Type used by LabelButton to map button states to text colors.
28 using ButtonColorByState = SkColor[Button::STATE_COUNT]; 28 using ButtonColorByState = SkColor[Button::STATE_COUNT];
29 29
30 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON). 30 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON).
31 static const int kMinLabelButtonWidth; 31 static const int kMinLabelButtonWidth;
32 static const int kMinLabelButtonHeight; 32 static const int kMinLabelButtonHeight;
33 33
34 // Whether dialog-default buttons are given a bold font style. 34 // Whether dialog-default buttons are given a bold font style.
35 static const bool kDefaultLabelButtonHasBoldFont; 35 static const bool kDefaultLabelButtonHasBoldFont;
36 36
37 // Whether dragging vertically above or below a textfield's bounds selects to
38 // the left or right end of the text from the cursor, respectively.
39 static const bool kTextfieldDragVerticallyDragsToEnd;
40
37 // Creates an ImageSkia containing the image to use for the combobox arrow. 41 // Creates an ImageSkia containing the image to use for the combobox arrow.
38 // The |is_enabled| argument is true if the control the arrow is for is 42 // The |is_enabled| argument is true if the control the arrow is for is
39 // enabled, and false if the control is disabled. The |style| argument is the 43 // enabled, and false if the control is disabled. The |style| argument is the
40 // style of the combobox the arrow is being drawn for. 44 // style of the combobox the arrow is being drawn for.
41 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, 45 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled,
42 Combobox::Style style); 46 Combobox::Style style);
43 47
44 // Creates the appropriate border for a focusable Combobox. 48 // Creates the appropriate border for a focusable Combobox.
45 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); 49 static std::unique_ptr<FocusableBorder> CreateComboboxBorder();
46 50
(...skipping 22 matching lines...) Expand all
69 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( 73 static std::unique_ptr<Border> CreateThemedLabelButtonBorder(
70 LabelButton* button); 74 LabelButton* button);
71 75
72 private: 76 private:
73 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 77 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
74 }; 78 };
75 79
76 } // namespace views 80 } // namespace views
77 81
78 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 82 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield_unittest.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698