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

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

Issue 2532613002: MacViews: fix bubble direction in RTL. (Closed)
Patch Set: Use the advice in buildflag.h? Created 4 years 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Whether TreeViews get a focus ring on the entire TreeView when focused. 50 // Whether TreeViews get a focus ring on the entire TreeView when focused.
51 static const bool kTreeViewHasFocusRing; 51 static const bool kTreeViewHasFocusRing;
52 52
53 // Whether selecting a row in a TreeView selects the entire row or only the 53 // Whether selecting a row in a TreeView selects the entire row or only the
54 // label for that row. 54 // label for that row.
55 static const bool kTreeViewSelectionPaintsEntireRow; 55 static const bool kTreeViewSelectionPaintsEntireRow;
56 56
57 // Whether ripples should be used for visual feedback on control activation. 57 // Whether ripples should be used for visual feedback on control activation.
58 static const bool kUseRipples; 58 static const bool kUseRipples;
59 59
60 // Whether to mirror the arrow of bubble dialogs in RTL, such that the bubble
61 // opens in the opposite direction.
62 static const bool kMirrorBubbleArrowInRTLByDefault;
63
60 // Creates an ImageSkia containing the image to use for the combobox arrow. 64 // Creates an ImageSkia containing the image to use for the combobox arrow.
61 // The |is_enabled| argument is true if the control the arrow is for is 65 // The |is_enabled| argument is true if the control the arrow is for is
62 // enabled, and false if the control is disabled. The |style| argument is the 66 // enabled, and false if the control is disabled. The |style| argument is the
63 // style of the combobox the arrow is being drawn for. 67 // style of the combobox the arrow is being drawn for.
64 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, 68 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled,
65 Combobox::Style style); 69 Combobox::Style style);
66 70
67 // Creates the default scrollbar for the given orientation. 71 // Creates the default scrollbar for the given orientation.
68 static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal); 72 static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal);
69 73
(...skipping 15 matching lines...) Expand all
85 // the failed edit if platform-appropriate. 89 // the failed edit if platform-appropriate.
86 static void OnTextfieldEditFailed(); 90 static void OnTextfieldEditFailed();
87 91
88 private: 92 private:
89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 93 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
90 }; 94 };
91 95
92 } // namespace views 96 } // namespace views
93 97
94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 98 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698