Changeset 81777 in webkit


Ignore:
Timestamp:
Mar 23, 2011 9:21:29 AM (13 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

2011-03-23 Gyuyoung Kim <gyuyoung.kim@samsung.com>

Reviewed by Antonio Gomes.

[EFL] Add play / pause button to media control
https://bugs.webkit.org/show_bug.cgi?id=55463

Add play|pause button to media control.

  • platform/efl/RenderThemeEfl.cpp: (WebCore::RenderThemeEfl::edjeGroupFromFormType): (WebCore::RenderThemeEfl::emitMediaButtonSignal): Added. (WebCore::RenderThemeEfl::paintMediaPlayButton):
  • platform/efl/RenderThemeEfl.h:

2011-03-23 Gyuyoung Kim <gyuyoung.kim@samsung.com>

Reviewed by Antonio Gomes.

[EFL] Add play / pause button to media control
https://bugs.webkit.org/show_bug.cgi?id=55463

Add play|pause button to media control.

  • DefaultTheme/default.edc:
  • DefaultTheme/widget/mediacontrol/playpausebutton/pausebutton.png: Added.
  • DefaultTheme/widget/mediacontrol/playpausebutton/playbutton.png: Added.
  • DefaultTheme/widget/mediacontrol/playpausebutton/playpause_button.edc: Added.
Location:
trunk/Source
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r81775 r81777  
     12011-03-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [EFL] Add play / pause button to media control
     6        https://bugs.webkit.org/show_bug.cgi?id=55463
     7
     8        Add play|pause button to media control.
     9
     10        * platform/efl/RenderThemeEfl.cpp:
     11        (WebCore::RenderThemeEfl::edjeGroupFromFormType):
     12        (WebCore::RenderThemeEfl::emitMediaButtonSignal): Added.
     13        (WebCore::RenderThemeEfl::paintMediaPlayButton):
     14        * platform/efl/RenderThemeEfl.h:
     15
    1162011-03-23  Aparna Nandyal  <aparna.nand@wipro.com>
    217
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp

    r80809 r81777  
    594594        W("slider/vertical"),
    595595        W("slider/horizontal"),
     596#if ENABLE(VIDEO)
     597        W("mediacontrol/playpause_button"),
     598#endif
    596599#undef W
    597600        0
     
    10461049
    10471050#if ENABLE(VIDEO)
     1051bool RenderThemeEfl::emitMediaButtonSignal(FormType formType, MediaControlElementType mediaElementType, const IntRect& rect)
     1052{
     1053    ThemePartCacheEntry* entry;
     1054
     1055    entry = cacheThemePartGet(formType, rect.size());
     1056    ASSERT(entry);
     1057    if (!entry)
     1058        return false;
     1059
     1060    if (mediaElementType == MediaPlayButton)
     1061        edje_object_signal_emit(entry->o, "play", "");
     1062    else if (mediaElementType == MediaPauseButton)
     1063        edje_object_signal_emit(entry->o, "pause", "");
     1064    else
     1065        return false;
     1066
     1067    return true;
     1068}
     1069
    10481070String RenderThemeEfl::extraMediaControlsStyleSheet()
    10491071{
     
    10711093bool RenderThemeEfl::paintMediaPlayButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    10721094{
     1095    Node* node = object->node();
     1096    if (!node)
     1097        return false;
     1098
     1099    MediaControlPlayButtonElement* button = static_cast<MediaControlPlayButtonElement*>(node);
     1100    if (!emitMediaButtonSignal(MediaPlayPauseButton, button->displayType(), rect))
     1101        return false;
     1102
     1103    return paintThemePart(object, MediaPlayPauseButton, info, rect);
     1104}
     1105
     1106bool RenderThemeEfl::paintMediaSeekBackButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1107{
    10731108    notImplemented();
    10741109    return false;
    10751110}
    10761111
    1077 bool RenderThemeEfl::paintMediaSeekBackButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1112bool RenderThemeEfl::paintMediaSeekForwardButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    10781113{
    10791114    notImplemented();
     
    10811116}
    10821117
    1083 bool RenderThemeEfl::paintMediaSeekForwardButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1118bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    10841119{
    10851120    notImplemented();
     
    10871122}
    10881123
    1089 bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1124bool RenderThemeEfl::paintMediaSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    10901125{
    10911126    notImplemented();
     
    10931128}
    10941129
    1095 bool RenderThemeEfl::paintMediaSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1130bool RenderThemeEfl::paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo& info, const IntRect& rect)
    10961131{
    10971132    notImplemented();
     
    10991134}
    11001135
    1101 bool RenderThemeEfl::paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo& info, const IntRect& rect)
     1136bool RenderThemeEfl::paintMediaVolumeSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    11021137{
    11031138    notImplemented();
     
    11051140}
    11061141
    1107 bool RenderThemeEfl::paintMediaVolumeSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1142bool RenderThemeEfl::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    11081143{
    11091144    notImplemented();
     
    11111146}
    11121147
    1113 bool RenderThemeEfl::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)
     1148bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    11141149{
    11151150    notImplemented();
    11161151    return false;
    11171152}
    1118 
    1119 bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    1120 {
    1121     notImplemented();
    1122     return false;
    1123 }
    11241153#endif
    11251154}
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.h

    r79080 r81777  
    3131#define RenderThemeEfl_h
    3232
     33#if ENABLE(VIDEO)
     34#include "MediaControlElements.h"
     35#endif
    3336#include "RenderTheme.h"
    3437
     
    5659    SliderVertical,
    5760    SliderHorizontal,
     61#if ENABLE(VIDEO)
     62    MediaPlayPauseButton,
     63#endif
    5864    FormTypeLast
    5965};
     
    182188    void applyEdjeStateFromForm(Evas_Object*, ControlStates);
    183189    bool paintThemePart(RenderObject*, FormType, const PaintInfo&, const IntRect&);
     190
     191#if ENABLE(VIDEO)
     192    bool emitMediaButtonSignal(FormType, MediaControlElementType, const IntRect&);
     193#endif
    184194
    185195    Page* m_page;
  • trunk/Source/WebKit/efl/ChangeLog

    r81670 r81777  
     12011-03-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [EFL] Add play / pause button to media control
     6        https://bugs.webkit.org/show_bug.cgi?id=55463
     7
     8        Add play|pause button to media control.
     9
     10        * DefaultTheme/default.edc:
     11        * DefaultTheme/widget/mediacontrol/playpausebutton/pausebutton.png: Added.
     12        * DefaultTheme/widget/mediacontrol/playpausebutton/playbutton.png: Added.
     13        * DefaultTheme/widget/mediacontrol/playpausebutton/playpause_button.edc: Added.
     14
    1152011-03-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Source/WebKit/efl/DefaultTheme/default.edc

    r69198 r81777  
    7777#include "widget/search/decoration/search_decoration.edc"
    7878#include "widget/slider/slider.edc"
     79#include "widget/mediacontrol/playpausebutton/playpause_button.edc"
    7980}
Note: See TracChangeset for help on using the changeset viewer.