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

Unified Diff: third_party/WebKit/Source/platform/mac/ThemeMac.h

Issue 2309593002: Factor code from ThemeMac into ThemeMacPainter. (Closed)
Patch Set: none Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/mac/ThemeMac.h
diff --git a/third_party/WebKit/Source/platform/mac/ThemeMac.h b/third_party/WebKit/Source/platform/mac/ThemeMac.h
index f9ed642df679f7803ac3a1dc6b8bf0761fe663d8..f364f2b9fdf766b7782fe9a174d925989bd660e6 100644
--- a/third_party/WebKit/Source/platform/mac/ThemeMac.h
+++ b/third_party/WebKit/Source/platform/mac/ThemeMac.h
@@ -47,7 +47,6 @@ public:
virtual bool controlRequiresPreWhiteSpace(ControlPart part) const { return part == PushButtonPart; }
- virtual void paint(ControlPart, ControlStates, GraphicsContext&, const IntRect&, float zoomFactor, ScrollableArea*) const;
virtual void addVisualOverflow(ControlPart, ControlStates, float zoomFactor, IntRect& borderBox) const;
// Inflate an IntRect to accout for specific padding around margins.
@@ -66,6 +65,24 @@ public:
// TODO: Consider using computing the focus ring's bounds with
// -[NSCell focusRingMaskBoundsForFrame:inView:]).
static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&);
+
+ static PLATFORM_EXPORT LengthSize checkboxSize(const FontDescription&, const LengthSize& zoomedSize, float zoomFactor);
+ static PLATFORM_EXPORT NSButtonCell *checkbox(ControlStates, const IntRect& zoomedRect, float zoomFactor);
+ static PLATFORM_EXPORT const IntSize* checkboxSizes();
+ static PLATFORM_EXPORT const int* checkboxMargins(NSControlSize);
+ static PLATFORM_EXPORT NSView* ensuredView(ScrollableArea*);
+
+ static PLATFORM_EXPORT const IntSize* radioSizes();
+ static PLATFORM_EXPORT const int* radioMargins(NSControlSize);
+ static PLATFORM_EXPORT LengthSize radioSize(const FontDescription&, const LengthSize& zoomedSize, float zoomFactor);
+ static PLATFORM_EXPORT NSButtonCell *radio(ControlStates, const IntRect& zoomedRect, float zoomFactor);
+
+ static PLATFORM_EXPORT const IntSize* buttonSizes();
+ static PLATFORM_EXPORT const int* buttonMargins(NSControlSize);
+ static PLATFORM_EXPORT NSButtonCell *button(ControlPart, ControlStates, const IntRect& zoomedRect, float zoomFactor);
+
+ static PLATFORM_EXPORT NSControlSize controlSizeFromPixelSize(const IntSize* sizes, const IntSize& minZoomedSize, float zoomFactor);
+ static PLATFORM_EXPORT const IntSize* stepperSizes();
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterMac.mm ('k') | third_party/WebKit/Source/platform/mac/ThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698