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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. | 100 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. |
101 // The rect passed in is in zoomed coordinates, so the inflation should take
that into account and make sure the inflation | 101 // The rect passed in is in zoomed coordinates, so the inflation should take
that into account and make sure the inflation |
102 // amount is also scaled by the zoomFactor. | 102 // amount is also scaled by the zoomFactor. |
103 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect& /*
zoomedRect*/, float /*zoomFactor*/) const { } | 103 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect& /*
zoomedRect*/, float /*zoomFactor*/) const { } |
104 | 104 |
105 private: | 105 private: |
106 mutable Color m_activeSelectionColor; | 106 mutable Color m_activeSelectionColor; |
107 mutable Color m_inactiveSelectionColor; | 107 mutable Color m_inactiveSelectionColor; |
108 }; | 108 }; |
109 | 109 |
110 // Function to obtain the theme. This is implemented in the platform-specific s
ubclasses. | 110 PLATFORM_EXPORT Theme* platformTheme(); |
111 Theme* platformTheme(); | |
112 | 111 |
113 } // namespace WebCore | 112 } // namespace WebCore |
114 | 113 |
115 #endif // Theme_h | 114 #endif // Theme_h |
OLD | NEW |