| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/text/PlatformLocale.h" | 34 #include "platform/text/PlatformLocale.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class ComputedStyle; | 41 class ComputedStyle; |
| 42 class Element; | 42 class Element; |
| 43 class FileList; | 43 class FileList; |
| 44 class HostWindow; |
| 44 class HTMLInputElement; | 45 class HTMLInputElement; |
| 45 class LayoutObject; | 46 class LayoutObject; |
| 46 class Theme; | 47 class Theme; |
| 47 class ThemePainter; | 48 class ThemePainter; |
| 48 | 49 |
| 49 class CORE_EXPORT LayoutTheme : public RefCounted<LayoutTheme> { | 50 class CORE_EXPORT LayoutTheme : public RefCounted<LayoutTheme> { |
| 50 protected: | 51 protected: |
| 51 explicit LayoutTheme(Theme*); | 52 explicit LayoutTheme(Theme*); |
| 52 | 53 |
| 53 public: | 54 public: |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 return false; | 161 return false; |
| 161 } | 162 } |
| 162 | 163 |
| 163 virtual int minimumMenuListSize(const ComputedStyle&) const { return 0; } | 164 virtual int minimumMenuListSize(const ComputedStyle&) const { return 0; } |
| 164 | 165 |
| 165 virtual void adjustSliderThumbSize(ComputedStyle&) const; | 166 virtual void adjustSliderThumbSize(ComputedStyle&) const; |
| 166 | 167 |
| 167 virtual int popupInternalPaddingStart(const ComputedStyle&) const { | 168 virtual int popupInternalPaddingStart(const ComputedStyle&) const { |
| 168 return 0; | 169 return 0; |
| 169 } | 170 } |
| 170 virtual int popupInternalPaddingEnd(const ComputedStyle&) const { return 0; } | 171 virtual int popupInternalPaddingEnd(const HostWindow*, |
| 172 const ComputedStyle&) const { |
| 173 return 0; |
| 174 } |
| 171 virtual int popupInternalPaddingTop(const ComputedStyle&) const { return 0; } | 175 virtual int popupInternalPaddingTop(const ComputedStyle&) const { return 0; } |
| 172 virtual int popupInternalPaddingBottom(const ComputedStyle&) const { | 176 virtual int popupInternalPaddingBottom(const ComputedStyle&) const { |
| 173 return 0; | 177 return 0; |
| 174 } | 178 } |
| 175 | 179 |
| 176 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { | 180 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { |
| 177 return RegularScrollbar; | 181 return RegularScrollbar; |
| 178 } | 182 } |
| 179 | 183 |
| 180 virtual void adjustProgressBarBounds(ComputedStyle& style) const {} | 184 virtual void adjustProgressBarBounds(ComputedStyle& style) const {} |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 286 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 283 | 287 |
| 284 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 288 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 285 | 289 |
| 286 Theme* m_platformTheme; // The platform-specific theme. | 290 Theme* m_platformTheme; // The platform-specific theme. |
| 287 }; | 291 }; |
| 288 | 292 |
| 289 } // namespace blink | 293 } // namespace blink |
| 290 | 294 |
| 291 #endif // LayoutTheme_h | 295 #endif // LayoutTheme_h |
| OLD | NEW |