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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.h

Issue 2224883002: Fix RTL rendering of SELECT on macOS and input[type=color] on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix RTL rendering of SELECT on macOS and input[type=color] on all platforms. Created 4 years, 4 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 /* 1 /*
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005 Apple Computer, Inc. 4 * Copyright (C) 2005 Apple Computer, Inc.
5 * Copyright (C) 2008, 2009 Google, Inc. 5 * Copyright (C) 2008, 2009 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // We estimate the animation rate of a Mac OS X progress bar is 33 fps. 140 // We estimate the animation rate of a Mac OS X progress bar is 33 fps.
141 // Hard code the value here because we haven't found API for it. 141 // Hard code the value here because we haven't found API for it.
142 static constexpr double progressAnimationFrameRate = 0.033; 142 static constexpr double progressAnimationFrameRate = 0.033;
143 // Mac OS X progress bar animation seems to have 256 frames. 143 // Mac OS X progress bar animation seems to have 256 frames.
144 static constexpr double progressAnimationNumFrames = 256; 144 static constexpr double progressAnimationNumFrames = 256;
145 145
146 static constexpr float baseFontSize = 11.0f; 146 static constexpr float baseFontSize = 11.0f;
147 static constexpr float menuListBaseArrowHeight = 4.0f; 147 static constexpr float menuListBaseArrowHeight = 4.0f;
148 static constexpr float menuListBaseArrowWidth = 5.0f; 148 static constexpr float menuListBaseArrowWidth = 5.0f;
149 static constexpr float menuListBaseSpaceBetweenArrows = 2.0f; 149 static constexpr float menuListBaseSpaceBetweenArrows = 2.0f;
150 static const int menuListArrowPaddingLeft = 4; 150 static const int menuListArrowPaddingStart = 4;
151 static const int menuListArrowPaddingRight = 4; 151 static const int menuListArrowPaddingEnd = 4;
152 static const int sliderThumbWidth = 15; 152 static const int sliderThumbWidth = 15;
153 static const int sliderThumbHeight = 15; 153 static const int sliderThumbHeight = 15;
154 static const int sliderThumbShadowBlur = 1; 154 static const int sliderThumbShadowBlur = 1;
155 static const int sliderThumbBorderWidth = 1; 155 static const int sliderThumbBorderWidth = 1;
156 static const int sliderTrackWidth = 5; 156 static const int sliderTrackWidth = 5;
157 static const int sliderTrackBorderWidth = 1; 157 static const int sliderTrackBorderWidth = 1;
158 158
159 protected: 159 protected:
160 void adjustMediaSliderThumbSize(ComputedStyle&) const; 160 void adjustMediaSliderThumbSize(ComputedStyle&) const;
161 String extraFullscreenStyleSheet() override; 161 String extraFullscreenStyleSheet() override;
(...skipping 19 matching lines...) Expand all
181 mutable HashMap<int, RGBA32> m_systemColorCache; 181 mutable HashMap<int, RGBA32> m_systemColorCache;
182 182
183 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; 183 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver;
184 184
185 ThemePainterMac m_painter; 185 ThemePainterMac m_painter;
186 }; 186 };
187 187
188 } // namespace blink 188 } // namespace blink
189 189
190 #endif // LayoutThemeMac_h 190 #endif // LayoutThemeMac_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698