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

Side by Side Diff: third_party/WebKit/Source/platform/mac/ThemeMac.h

Issue 2388793002: reflow comments in platform/mac (Closed)
Patch Set: Created 4 years, 2 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 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 float zoomFactor, 67 float zoomFactor,
68 IntRect& borderBox) const; 68 IntRect& borderBox) const;
69 69
70 // Inflate an IntRect to accout for specific padding around margins. 70 // Inflate an IntRect to accout for specific padding around margins.
71 enum { TopMargin = 0, RightMargin = 1, BottomMargin = 2, LeftMargin = 3 }; 71 enum { TopMargin = 0, RightMargin = 1, BottomMargin = 2, LeftMargin = 3 };
72 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, 72 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&,
73 const IntSize&, 73 const IntSize&,
74 const int* margins, 74 const int* margins,
75 float zoomLevel = 1.0f); 75 float zoomLevel = 1.0f);
76 76
77 // Inflate an IntRect to account for any bleeding that would happen due to ant i-aliasing. 77 // Inflate an IntRect to account for any bleeding that would happen due to
78 // anti-aliasing.
78 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&); 79 static PLATFORM_EXPORT IntRect inflateRectForAA(const IntRect&);
79 80
80 // Inflate an IntRect to account for its focus ring. 81 // Inflate an IntRect to account for its focus ring.
81 // TODO: Consider using computing the focus ring's bounds with 82 // TODO: Consider using computing the focus ring's bounds with
82 // -[NSCell focusRingMaskBoundsForFrame:inView:]). 83 // -[NSCell focusRingMaskBoundsForFrame:inView:]).
83 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&); 84 static PLATFORM_EXPORT IntRect inflateRectForFocusRing(const IntRect&);
84 85
85 static PLATFORM_EXPORT LengthSize checkboxSize(const FontDescription&, 86 static PLATFORM_EXPORT LengthSize checkboxSize(const FontDescription&,
86 const LengthSize& zoomedSize, 87 const LengthSize& zoomedSize,
87 float zoomFactor); 88 float zoomFactor);
(...skipping 23 matching lines...) Expand all
111 static PLATFORM_EXPORT NSControlSize 112 static PLATFORM_EXPORT NSControlSize
112 controlSizeFromPixelSize(const IntSize* sizes, 113 controlSizeFromPixelSize(const IntSize* sizes,
113 const IntSize& minZoomedSize, 114 const IntSize& minZoomedSize,
114 float zoomFactor); 115 float zoomFactor);
115 static PLATFORM_EXPORT const IntSize* stepperSizes(); 116 static PLATFORM_EXPORT const IntSize* stepperSizes();
116 }; 117 };
117 118
118 } // namespace blink 119 } // namespace blink
119 120
120 #endif // ThemeMac_h 121 #endif // ThemeMac_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.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