| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
| 5 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia | 5 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia |
| 6 * Copyright (C) 2009-2010 ProFUSION embedded systems | 6 * Copyright (C) 2009-2010 ProFUSION embedded systems |
| 7 * Copyright (C) 2009-2011 Samsung Electronics | 7 * Copyright (C) 2009-2011 Samsung Electronics |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 | 1195 |
| 1196 return paintThemePart(object, MuteUnMuteButton, info, rect); | 1196 return paintThemePart(object, MuteUnMuteButton, info, rect); |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 bool RenderThemeEfl::paintMediaPlayButton(RenderObject* object, const PaintInfo&
info, const IntRect& rect) | 1199 bool RenderThemeEfl::paintMediaPlayButton(RenderObject* object, const PaintInfo&
info, const IntRect& rect) |
| 1200 { | 1200 { |
| 1201 Node* node = object->node(); | 1201 Node* node = object->node(); |
| 1202 if (!node || !node->isMediaControlElement()) | 1202 if (!node || !node->isMediaControlElement()) |
| 1203 return false; | 1203 return false; |
| 1204 | 1204 |
| 1205 MediaControlPlayButtonElement* button = static_cast<MediaControlPlayButtonEl
ement*>(node); | 1205 if (!emitMediaButtonSignal(PlayPauseButton, mediaControlElementType(node), r
ect)) |
| 1206 if (!emitMediaButtonSignal(PlayPauseButton, button->displayType(), rect)) | |
| 1207 return false; | 1206 return false; |
| 1208 | 1207 |
| 1209 return paintThemePart(object, PlayPauseButton, info, rect); | 1208 return paintThemePart(object, PlayPauseButton, info, rect); |
| 1210 } | 1209 } |
| 1211 | 1210 |
| 1212 bool RenderThemeEfl::paintMediaSeekBackButton(RenderObject* object, const PaintI
nfo& info, const IntRect& rect) | 1211 bool RenderThemeEfl::paintMediaSeekBackButton(RenderObject* object, const PaintI
nfo& info, const IntRect& rect) |
| 1213 { | 1212 { |
| 1214 Node* node = object->node(); | 1213 Node* node = object->node(); |
| 1215 if (!node || !node->isMediaControlElement()) | 1214 if (!node || !node->isMediaControlElement()) |
| 1216 return 0; | 1215 return 0; |
| 1217 | 1216 |
| 1218 MediaControlSeekButtonElement* button = static_cast<MediaControlSeekButtonEl
ement*>(node); | 1217 if (!emitMediaButtonSignal(SeekBackwardButton, mediaControlElementType(node)
, rect)) |
| 1219 if (!emitMediaButtonSignal(SeekBackwardButton, button->displayType(), rect)) | |
| 1220 return false; | 1218 return false; |
| 1221 | 1219 |
| 1222 return paintThemePart(object, SeekBackwardButton, info, rect); | 1220 return paintThemePart(object, SeekBackwardButton, info, rect); |
| 1223 } | 1221 } |
| 1224 | 1222 |
| 1225 bool RenderThemeEfl::paintMediaSeekForwardButton(RenderObject* object, const Pai
ntInfo& info, const IntRect& rect) | 1223 bool RenderThemeEfl::paintMediaSeekForwardButton(RenderObject* object, const Pai
ntInfo& info, const IntRect& rect) |
| 1226 { | 1224 { |
| 1227 Node* node = object->node(); | 1225 Node* node = object->node(); |
| 1228 if (!node || !node->isMediaControlElement()) | 1226 if (!node || !node->isMediaControlElement()) |
| 1229 return 0; | 1227 return 0; |
| 1230 | 1228 |
| 1231 MediaControlSeekButtonElement* button = static_cast<MediaControlSeekButtonEl
ement*>(node); | 1229 if (!emitMediaButtonSignal(SeekForwardButton, mediaControlElementType(node),
rect)) |
| 1232 if (!emitMediaButtonSignal(SeekForwardButton, button->displayType(), rect)) | |
| 1233 return false; | 1230 return false; |
| 1234 | 1231 |
| 1235 return paintThemePart(object, SeekForwardButton, info, rect); | 1232 return paintThemePart(object, SeekForwardButton, info, rect); |
| 1236 } | 1233 } |
| 1237 | 1234 |
| 1238 bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo
& info, const IntRect& rect) | 1235 bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo
& info, const IntRect& rect) |
| 1239 { | 1236 { |
| 1240 GraphicsContext* context = info.context; | 1237 GraphicsContext* context = info.context; |
| 1241 | 1238 |
| 1242 context->fillRect(FloatRect(rect), m_mediaPanelColor, ColorSpaceDeviceRGB); | 1239 context->fillRect(FloatRect(rect), m_mediaPanelColor, ColorSpaceDeviceRGB); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 return false; | 1310 return false; |
| 1314 } | 1311 } |
| 1315 | 1312 |
| 1316 bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo
& info, const IntRect& rect) | 1313 bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo
& info, const IntRect& rect) |
| 1317 { | 1314 { |
| 1318 info.context->fillRect(FloatRect(rect), m_mediaPanelColor, ColorSpaceDeviceR
GB); | 1315 info.context->fillRect(FloatRect(rect), m_mediaPanelColor, ColorSpaceDeviceR
GB); |
| 1319 return true; | 1316 return true; |
| 1320 } | 1317 } |
| 1321 #endif | 1318 #endif |
| 1322 } | 1319 } |
| OLD | NEW |