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

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

Issue 2050813002: MacViews: support backgrounds for selected rows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 20 matching lines...) Expand all
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 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. 38 // the left or right end of the text from the cursor, respectively.
39 static const bool kTextfieldDragVerticallyDragsToEnd; 39 static const bool kTextfieldDragVerticallyDragsToEnd;
40 40
41 // Whether selecting a row in a TreeView selects the entire row or only the
42 // label for that row.
43 static const bool kTreeViewSelectsEntireRow;
44
41 // Creates an ImageSkia containing the image to use for the combobox arrow. 45 // Creates an ImageSkia containing the image to use for the combobox arrow.
42 // The |is_enabled| argument is true if the control the arrow is for is 46 // The |is_enabled| argument is true if the control the arrow is for is
43 // enabled, and false if the control is disabled. The |style| argument is the 47 // enabled, and false if the control is disabled. The |style| argument is the
44 // style of the combobox the arrow is being drawn for. 48 // style of the combobox the arrow is being drawn for.
45 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, 49 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled,
46 Combobox::Style style); 50 Combobox::Style style);
47 51
48 // Creates the appropriate border for a focusable Combobox. 52 // Creates the appropriate border for a focusable Combobox.
49 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); 53 static std::unique_ptr<FocusableBorder> CreateComboboxBorder();
50 54
(...skipping 23 matching lines...) Expand all
74 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( 78 static std::unique_ptr<Border> CreateThemedLabelButtonBorder(
75 LabelButton* button); 79 LabelButton* button);
76 80
77 private: 81 private:
78 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 82 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
79 }; 83 };
80 84
81 } // namespace views 85 } // namespace views
82 86
83 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 87 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698