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

Side by Side Diff: third_party/WebKit/Source/platform/Theme.h

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Split StyleSurroundData::padding into four individual Lengths. Created 3 years, 7 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Returns the minimum size for a control in zoomed coordinates. 108 // Returns the minimum size for a control in zoomed coordinates.
109 virtual LengthSize MinimumControlSize(ControlPart, 109 virtual LengthSize MinimumControlSize(ControlPart,
110 const FontDescription&, 110 const FontDescription&,
111 float /*zoomFactor*/) const { 111 float /*zoomFactor*/) const {
112 return LengthSize(Length(0, kFixed), Length(0, kFixed)); 112 return LengthSize(Length(0, kFixed), Length(0, kFixed));
113 } 113 }
114 114
115 // Allows the theme to modify the existing padding/border. 115 // Allows the theme to modify the existing padding/border.
116 virtual LengthBox ControlPadding(ControlPart, 116 virtual LengthBox ControlPadding(ControlPart,
117 const FontDescription&, 117 const FontDescription&,
118 const LengthBox& zoomed_box, 118 const Length& zoomed_box_top,
119 const Length& zoomed_box_right,
120 const Length& zoomed_box_bottom,
121 const Length& zoomed_box_left,
119 float zoom_factor) const; 122 float zoom_factor) const;
120 virtual LengthBox ControlBorder(ControlPart, 123 virtual LengthBox ControlBorder(ControlPart,
121 const FontDescription&, 124 const FontDescription&,
122 const LengthBox& zoomed_box, 125 const LengthBox& zoomed_box,
123 float zoom_factor) const; 126 float zoom_factor) const;
124 127
125 // Whether or not whitespace: pre should be forced on always. 128 // Whether or not whitespace: pre should be forced on always.
126 virtual bool ControlRequiresPreWhiteSpace(ControlPart) const { return false; } 129 virtual bool ControlRequiresPreWhiteSpace(ControlPart) const { return false; }
127 130
128 // Method for painting a control. The rect is in zoomed coordinates. 131 // Method for painting a control. The rect is in zoomed coordinates.
(...skipping 15 matching lines...) Expand all
144 private: 147 private:
145 mutable Color active_selection_color_; 148 mutable Color active_selection_color_;
146 mutable Color inactive_selection_color_; 149 mutable Color inactive_selection_color_;
147 }; 150 };
148 151
149 PLATFORM_EXPORT Theme* PlatformTheme(); 152 PLATFORM_EXPORT Theme* PlatformTheme();
150 153
151 } // namespace blink 154 } // namespace blink
152 155
153 #endif // Theme_h 156 #endif // Theme_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleSurroundData.cpp ('k') | third_party/WebKit/Source/platform/Theme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698