OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual LengthSize GetControlSize(ControlPart, | 46 virtual LengthSize GetControlSize(ControlPart, |
47 const FontDescription&, | 47 const FontDescription&, |
48 const LengthSize&, | 48 const LengthSize&, |
49 float zoom_factor) const; | 49 float zoom_factor) const; |
50 virtual LengthSize MinimumControlSize(ControlPart, | 50 virtual LengthSize MinimumControlSize(ControlPart, |
51 const FontDescription&, | 51 const FontDescription&, |
52 float zoom_factor) const; | 52 float zoom_factor) const; |
53 | 53 |
54 virtual LengthBox ControlPadding(ControlPart, | 54 virtual LengthBox ControlPadding(ControlPart, |
55 const FontDescription&, | 55 const FontDescription&, |
56 const LengthBox& zoomed_box, | 56 const Length& zoomed_box_top, |
| 57 const Length& zoomed_box_right, |
| 58 const Length& zoomed_box_bottom, |
| 59 const Length& zoomed_box_left, |
57 float zoom_factor) const; | 60 float zoom_factor) const; |
58 virtual LengthBox ControlBorder(ControlPart, | 61 virtual LengthBox ControlBorder(ControlPart, |
59 const FontDescription&, | 62 const FontDescription&, |
60 const LengthBox& zoomed_box, | 63 const LengthBox& zoomed_box, |
61 float zoom_factor) const; | 64 float zoom_factor) const; |
62 | 65 |
63 virtual bool ControlRequiresPreWhiteSpace(ControlPart part) const { | 66 virtual bool ControlRequiresPreWhiteSpace(ControlPart part) const { |
64 return part == kPushButtonPart; | 67 return part == kPushButtonPart; |
65 } | 68 } |
66 | 69 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 static PLATFORM_EXPORT NSControlSize | 117 static PLATFORM_EXPORT NSControlSize |
115 ControlSizeFromPixelSize(const IntSize* sizes, | 118 ControlSizeFromPixelSize(const IntSize* sizes, |
116 const IntSize& min_zoomed_size, | 119 const IntSize& min_zoomed_size, |
117 float zoom_factor); | 120 float zoom_factor); |
118 static PLATFORM_EXPORT const IntSize* StepperSizes(); | 121 static PLATFORM_EXPORT const IntSize* StepperSizes(); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace blink | 124 } // namespace blink |
122 | 125 |
123 #endif // ThemeMac_h | 126 #endif // ThemeMac_h |
OLD | NEW |