| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 * | 20 * |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef RenderTheme_h | 23 #ifndef RenderTheme_h |
| 24 #define RenderTheme_h | 24 #define RenderTheme_h |
| 25 | 25 |
| 26 #include "base/logging.h" |
| 27 |
| 26 #if USE(NEW_THEME) | 28 #if USE(NEW_THEME) |
| 27 #include "platform/Theme.h" | 29 #include "platform/Theme.h" |
| 28 #else | 30 #else |
| 29 #include "platform/ThemeTypes.h" | 31 #include "platform/ThemeTypes.h" |
| 30 #endif | 32 #endif |
| 31 #include "core/rendering/RenderObject.h" | 33 #include "core/rendering/RenderObject.h" |
| 32 #include "core/rendering/style/CachedUAStyle.h" | 34 #include "core/rendering/style/CachedUAStyle.h" |
| 33 #include "platform/scroll/ScrollTypes.h" | 35 #include "platform/scroll/ScrollTypes.h" |
| 34 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
| 35 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, con
st IntRect&) { return true; } | 265 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, con
st IntRect&) { return true; } |
| 264 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; } | 266 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; } |
| 265 virtual bool paintMediaOverlayPlayButton(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 267 virtual bool paintMediaOverlayPlayButton(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
| 266 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; } | 268 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; } |
| 267 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } | 269 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } |
| 268 virtual bool paintMediaSliderThumb(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } | 270 virtual bool paintMediaSliderThumb(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } |
| 269 virtual bool paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo&
, const IntRect&) { return true; } | 271 virtual bool paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo&
, const IntRect&) { return true; } |
| 270 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 272 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
| 271 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 273 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
| 272 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint
Info&, const IntRect&) { return true; } | 274 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint
Info&, const IntRect&) { return true; } |
| 275 virtual bool paintMediaCastOnButton(RenderObject*, const PaintInfo&, const I
ntRect&) { |
| 276 LOG(INFO) << "Painting cast on in default"; |
| 277 return true; }; |
| 278 virtual bool paintMediaCastOffButton(RenderObject*, const PaintInfo&, const
IntRect&) { LOG(INFO) << "Painting cast off in default"; |
| 279 return true; }; |
| 273 virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, c
onst IntRect&) { return true; } | 280 virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, c
onst IntRect&) { return true; } |
| 274 virtual bool paintMediaCurrentTime(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } | 281 virtual bool paintMediaCurrentTime(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } |
| 275 virtual bool paintMediaTimeRemaining(RenderObject*, const PaintInfo&, const
IntRect&) { return true; } | 282 virtual bool paintMediaTimeRemaining(RenderObject*, const PaintInfo&, const
IntRect&) { return true; } |
| 276 virtual bool paintMediaFullScreenVolumeSliderTrack(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } | 283 virtual bool paintMediaFullScreenVolumeSliderTrack(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } |
| 277 virtual bool paintMediaFullScreenVolumeSliderThumb(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } | 284 virtual bool paintMediaFullScreenVolumeSliderThumb(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } |
| 278 | 285 |
| 279 virtual bool shouldUseFallbackTheme(RenderStyle*) const; | 286 virtual bool shouldUseFallbackTheme(RenderStyle*) const; |
| 280 void adjustStyleUsingFallbackTheme(RenderStyle*, Element*); | 287 void adjustStyleUsingFallbackTheme(RenderStyle*, Element*); |
| 281 bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&
); | 288 bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&
); |
| 282 void adjustCheckboxStyleUsingFallbackTheme(RenderStyle*, Element*) const; | 289 void adjustCheckboxStyleUsingFallbackTheme(RenderStyle*, Element*) const; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 307 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 314 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 308 | 315 |
| 309 #if USE(NEW_THEME) | 316 #if USE(NEW_THEME) |
| 310 Theme* m_platformTheme; // The platform-specific theme. | 317 Theme* m_platformTheme; // The platform-specific theme. |
| 311 #endif | 318 #endif |
| 312 }; | 319 }; |
| 313 | 320 |
| 314 } // namespace WebCore | 321 } // namespace WebCore |
| 315 | 322 |
| 316 #endif // RenderTheme_h | 323 #endif // RenderTheme_h |
| OLD | NEW |