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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual int popupInternalPaddingLeft(const LayoutStyle&) const override; | 66 virtual int popupInternalPaddingLeft(const LayoutStyle&) const override; |
67 virtual int popupInternalPaddingRight(const LayoutStyle&) const override; | 67 virtual int popupInternalPaddingRight(const LayoutStyle&) const override; |
68 virtual int popupInternalPaddingTop(const LayoutStyle&) const override; | 68 virtual int popupInternalPaddingTop(const LayoutStyle&) const override; |
69 virtual int popupInternalPaddingBottom(const LayoutStyle&) const override; | 69 virtual int popupInternalPaddingBottom(const LayoutStyle&) const override; |
70 | 70 |
71 virtual bool paintCapsLockIndicator(LayoutObject*, const PaintInfo&, const I
ntRect&) override; | 71 virtual bool paintCapsLockIndicator(LayoutObject*, const PaintInfo&, const I
ntRect&) override; |
72 | 72 |
73 virtual bool popsMenuByArrowKeys() const override { return true; } | 73 virtual bool popsMenuByArrowKeys() const override { return true; } |
74 virtual bool popsMenuBySpaceKey() const override final { return true; } | 74 virtual bool popsMenuBySpaceKey() const override final { return true; } |
75 | 75 |
76 virtual IntSize meterSizeForBounds(const RenderMeter*, const IntRect&) const
override; | 76 virtual IntSize meterSizeForBounds(const LayoutMeter*, const IntRect&) const
override; |
77 virtual bool paintMeter(LayoutObject*, const PaintInfo&, const IntRect&) ove
rride; | 77 virtual bool paintMeter(LayoutObject*, const PaintInfo&, const IntRect&) ove
rride; |
78 virtual bool supportsMeter(ControlPart) const override; | 78 virtual bool supportsMeter(ControlPart) const override; |
79 | 79 |
80 // Returns the repeat interval of the animation for the progress bar. | 80 // Returns the repeat interval of the animation for the progress bar. |
81 virtual double animationRepeatIntervalForProgressBar(LayoutProgress*) const
override; | 81 virtual double animationRepeatIntervalForProgressBar(LayoutProgress*) const
override; |
82 // Returns the duration of the animation for the progress bar. | 82 // Returns the duration of the animation for the progress bar. |
83 virtual double animationDurationForProgressBar(LayoutProgress*) const overri
de; | 83 virtual double animationDurationForProgressBar(LayoutProgress*) const overri
de; |
84 | 84 |
85 virtual Color systemColor(CSSValueID) const override; | 85 virtual Color systemColor(CSSValueID) const override; |
86 | 86 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const IntSize* cancelButtonSizes() const; | 151 const IntSize* cancelButtonSizes() const; |
152 const IntSize* resultsButtonSizes() const; | 152 const IntSize* resultsButtonSizes() const; |
153 void setSearchCellState(LayoutObject*, const IntRect&); | 153 void setSearchCellState(LayoutObject*, const IntRect&); |
154 void setSearchFieldSize(LayoutStyle&) const; | 154 void setSearchFieldSize(LayoutStyle&) const; |
155 | 155 |
156 NSPopUpButtonCell* popupButton() const; | 156 NSPopUpButtonCell* popupButton() const; |
157 NSSearchFieldCell* search() const; | 157 NSSearchFieldCell* search() const; |
158 NSTextFieldCell* textField() const; | 158 NSTextFieldCell* textField() const; |
159 | 159 |
160 NSLevelIndicatorStyle levelIndicatorStyleFor(ControlPart) const; | 160 NSLevelIndicatorStyle levelIndicatorStyleFor(ControlPart) const; |
161 NSLevelIndicatorCell* levelIndicatorFor(const RenderMeter*) const; | 161 NSLevelIndicatorCell* levelIndicatorFor(const LayoutMeter*) const; |
162 | 162 |
163 int minimumProgressBarHeight(const LayoutStyle&) const; | 163 int minimumProgressBarHeight(const LayoutStyle&) const; |
164 const IntSize* progressBarSizes() const; | 164 const IntSize* progressBarSizes() const; |
165 const int* progressBarMargins(NSControlSize) const; | 165 const int* progressBarMargins(NSControlSize) const; |
166 | 166 |
167 protected: | 167 protected: |
168 virtual void adjustMediaSliderThumbSize(LayoutStyle&) const; | 168 virtual void adjustMediaSliderThumbSize(LayoutStyle&) const; |
169 virtual bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const Int
Rect&) override; | 169 virtual bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const Int
Rect&) override; |
170 virtual bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, co
nst IntRect&) override; | 170 virtual bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, co
nst IntRect&) override; |
171 virtual bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const Int
Rect&) override; | 171 virtual bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const Int
Rect&) override; |
(...skipping 28 matching lines...) Expand all Loading... |
200 mutable RetainPtr<NSTextFieldCell> m_textField; | 200 mutable RetainPtr<NSTextFieldCell> m_textField; |
201 | 201 |
202 mutable HashMap<int, RGBA32> m_systemColorCache; | 202 mutable HashMap<int, RGBA32> m_systemColorCache; |
203 | 203 |
204 RetainPtr<LayoutThemeNotificationObserver> m_notificationObserver; | 204 RetainPtr<LayoutThemeNotificationObserver> m_notificationObserver; |
205 }; | 205 }; |
206 | 206 |
207 } // namespace blink | 207 } // namespace blink |
208 | 208 |
209 #endif // LayoutThemeMac_h | 209 #endif // LayoutThemeMac_h |
OLD | NEW |