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, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class AuthorStyleInfo; | 39 class AuthorStyleInfo; |
40 class Element; | 40 class Element; |
41 class FileList; | 41 class FileList; |
42 class HTMLInputElement; | 42 class HTMLInputElement; |
43 class RenderMeter; | 43 class LayoutMeter; |
44 class LayoutProgress; | 44 class LayoutProgress; |
45 | 45 |
46 | 46 |
47 class LayoutTheme : public RefCounted<LayoutTheme> { | 47 class LayoutTheme : public RefCounted<LayoutTheme> { |
48 protected: | 48 protected: |
49 LayoutTheme(); | 49 LayoutTheme(); |
50 | 50 |
51 public: | 51 public: |
52 virtual ~LayoutTheme() { } | 52 virtual ~LayoutTheme() { } |
53 | 53 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 // Returns the repeat interval of the animation for the progress bar. | 160 // Returns the repeat interval of the animation for the progress bar. |
161 virtual double animationRepeatIntervalForProgressBar(LayoutProgress*) const; | 161 virtual double animationRepeatIntervalForProgressBar(LayoutProgress*) const; |
162 // Returns the duration of the animation for the progress bar. | 162 // Returns the duration of the animation for the progress bar. |
163 virtual double animationDurationForProgressBar(LayoutProgress*) const; | 163 virtual double animationDurationForProgressBar(LayoutProgress*) const; |
164 | 164 |
165 // Media controls | 165 // Media controls |
166 virtual String formatMediaControlsTime(float time) const; | 166 virtual String formatMediaControlsTime(float time) const; |
167 virtual String formatMediaControlsCurrentTime(float currentTime, float durat
ion) const; | 167 virtual String formatMediaControlsCurrentTime(float currentTime, float durat
ion) const; |
168 | 168 |
169 virtual IntSize meterSizeForBounds(const RenderMeter*, const IntRect&) const
; | 169 virtual IntSize meterSizeForBounds(const LayoutMeter*, const IntRect&) const
; |
170 virtual bool supportsMeter(ControlPart) const; | 170 virtual bool supportsMeter(ControlPart) const; |
171 | 171 |
172 // Returns size of one slider tick mark for a horizontal track. | 172 // Returns size of one slider tick mark for a horizontal track. |
173 // For vertical tracks we rotate it and use it. i.e. Width is always length
along the track. | 173 // For vertical tracks we rotate it and use it. i.e. Width is always length
along the track. |
174 virtual IntSize sliderTickSize() const = 0; | 174 virtual IntSize sliderTickSize() const = 0; |
175 // Returns the distance of slider tick origin from the slider track center. | 175 // Returns the distance of slider tick origin from the slider track center. |
176 virtual int sliderTickOffsetFromTrackCenter() const = 0; | 176 virtual int sliderTickOffsetFromTrackCenter() const = 0; |
177 void paintSliderTicks(LayoutObject*, const PaintInfo&, const IntRect&); | 177 void paintSliderTicks(LayoutObject*, const PaintInfo&, const IntRect&); |
178 | 178 |
179 virtual bool shouldShowPlaceholderWhenFocused() const { return false; } | 179 virtual bool shouldShowPlaceholderWhenFocused() const { return false; } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
308 | 308 |
309 #if USE(NEW_THEME) | 309 #if USE(NEW_THEME) |
310 Theme* m_platformTheme; // The platform-specific theme. | 310 Theme* m_platformTheme; // The platform-specific theme. |
311 #endif | 311 #endif |
312 }; | 312 }; |
313 | 313 |
314 } // namespace blink | 314 } // namespace blink |
315 | 315 |
316 #endif // LayoutTheme_h | 316 #endif // LayoutTheme_h |
OLD | NEW |