| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2005 Apple Computer, Inc. | 4 * Copyright (C) 2005 Apple Computer, Inc. |
| 5 * Copyright (C) 2008, 2009 Google, Inc. | 5 * Copyright (C) 2008, 2009 Google, Inc. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 virtual void adjustSearchFieldDecorationStyle(RenderStyle*, Element*) const
OVERRIDE; | 115 virtual void adjustSearchFieldDecorationStyle(RenderStyle*, Element*) const
OVERRIDE; |
| 116 virtual bool paintSearchFieldDecoration(RenderObject*, const PaintInfo&, con
st IntRect&) OVERRIDE; | 116 virtual bool paintSearchFieldDecoration(RenderObject*, const PaintInfo&, con
st IntRect&) OVERRIDE; |
| 117 | 117 |
| 118 virtual void adjustSearchFieldResultsDecorationStyle(RenderStyle*, Element*)
const OVERRIDE; | 118 virtual void adjustSearchFieldResultsDecorationStyle(RenderStyle*, Element*)
const OVERRIDE; |
| 119 virtual bool paintSearchFieldResultsDecoration(RenderObject*, const PaintInf
o&, const IntRect&) OVERRIDE; | 119 virtual bool paintSearchFieldResultsDecoration(RenderObject*, const PaintInf
o&, const IntRect&) OVERRIDE; |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const OVERRIDE; | 122 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const OVERRIDE; |
| 123 | 123 |
| 124 IntRect inflateRect(const IntRect&, const IntSize&, const int* margins, floa
t zoomLevel = 1.0f) const; | |
| 125 | |
| 126 FloatRect convertToPaintingRect(const RenderObject* inputRenderer, const Ren
derObject* partRenderer, const FloatRect& inputRect, const IntRect&) const; | 124 FloatRect convertToPaintingRect(const RenderObject* inputRenderer, const Ren
derObject* partRenderer, const FloatRect& inputRect, const IntRect&) const; |
| 127 | 125 |
| 128 // Get the control size based off the font. Used by some of the controls (li
ke buttons). | 126 // Get the control size based off the font. Used by some of the controls (li
ke buttons). |
| 129 NSControlSize controlSizeForFont(RenderStyle*) const; | 127 NSControlSize controlSizeForFont(RenderStyle*) const; |
| 130 NSControlSize controlSizeForSystemFont(RenderStyle*) const; | 128 NSControlSize controlSizeForSystemFont(RenderStyle*) const; |
| 131 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f
loat zoomLevel = 1.0f); | 129 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f
loat zoomLevel = 1.0f); |
| 132 void setSizeFromFont(RenderStyle*, const IntSize* sizes) const; | 130 void setSizeFromFont(RenderStyle*, const IntSize* sizes) const; |
| 133 IntSize sizeForFont(RenderStyle*, const IntSize* sizes) const; | 131 IntSize sizeForFont(RenderStyle*, const IntSize* sizes) const; |
| 134 IntSize sizeForSystemFont(RenderStyle*, const IntSize* sizes) const; | 132 IntSize sizeForSystemFont(RenderStyle*, const IntSize* sizes) const; |
| 135 void setFontFromControlSize(RenderStyle*, NSControlSize) const; | 133 void setFontFromControlSize(RenderStyle*, NSControlSize) const; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 mutable RetainPtr<NSTextFieldCell> m_textField; | 199 mutable RetainPtr<NSTextFieldCell> m_textField; |
| 202 | 200 |
| 203 mutable HashMap<int, RGBA32> m_systemColorCache; | 201 mutable HashMap<int, RGBA32> m_systemColorCache; |
| 204 | 202 |
| 205 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; | 203 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; |
| 206 }; | 204 }; |
| 207 | 205 |
| 208 } // namespace blink | 206 } // namespace blink |
| 209 | 207 |
| 210 #endif // RenderThemeChromiumMac_h | 208 #endif // RenderThemeChromiumMac_h |
| OLD | NEW |