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

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

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Split StyleSurroundData::padding into four individual Lengths. Created 3 years, 8 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Theme.cpp ('k') | third_party/WebKit/Source/platform/mac/ThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698