Changeset 81777 in webkit
- Timestamp:
- Mar 23, 2011 9:21:29 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r81775 r81777 1 2011-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 1 16 2011-03-23 Aparna Nandyal <aparna.nand@wipro.com> 2 17 -
trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp
r80809 r81777 594 594 W("slider/vertical"), 595 595 W("slider/horizontal"), 596 #if ENABLE(VIDEO) 597 W("mediacontrol/playpause_button"), 598 #endif 596 599 #undef W 597 600 0 … … 1046 1049 1047 1050 #if ENABLE(VIDEO) 1051 bool 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 1048 1070 String RenderThemeEfl::extraMediaControlsStyleSheet() 1049 1071 { … … 1071 1093 bool RenderThemeEfl::paintMediaPlayButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1072 1094 { 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 1106 bool RenderThemeEfl::paintMediaSeekBackButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1107 { 1073 1108 notImplemented(); 1074 1109 return false; 1075 1110 } 1076 1111 1077 bool RenderThemeEfl::paintMediaSeek BackButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)1112 bool RenderThemeEfl::paintMediaSeekForwardButton(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1078 1113 { 1079 1114 notImplemented(); … … 1081 1116 } 1082 1117 1083 bool RenderThemeEfl::paintMediaS eekForwardButton(RenderObject* object, const PaintInfo& info, const IntRect& rect)1118 bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1084 1119 { 1085 1120 notImplemented(); … … 1087 1122 } 1088 1123 1089 bool RenderThemeEfl::paintMediaSliderT rack(RenderObject* object, const PaintInfo& info, const IntRect& rect)1124 bool RenderThemeEfl::paintMediaSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1090 1125 { 1091 1126 notImplemented(); … … 1093 1128 } 1094 1129 1095 bool RenderThemeEfl::paintMedia SliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)1130 bool RenderThemeEfl::paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo& info, const IntRect& rect) 1096 1131 { 1097 1132 notImplemented(); … … 1099 1134 } 1100 1135 1101 bool RenderThemeEfl::paintMediaVolumeSlider Container(RenderObject*, const PaintInfo& info, const IntRect& rect)1136 bool RenderThemeEfl::paintMediaVolumeSliderTrack(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1102 1137 { 1103 1138 notImplemented(); … … 1105 1140 } 1106 1141 1107 bool RenderThemeEfl::paintMediaVolumeSliderT rack(RenderObject* object, const PaintInfo& info, const IntRect& rect)1142 bool RenderThemeEfl::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1108 1143 { 1109 1144 notImplemented(); … … 1111 1146 } 1112 1147 1113 bool RenderThemeEfl::paintMedia VolumeSliderThumb(RenderObject* object, const PaintInfo& info, const IntRect& rect)1148 bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect) 1114 1149 { 1115 1150 notImplemented(); 1116 1151 return false; 1117 1152 } 1118 1119 bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect)1120 {1121 notImplemented();1122 return false;1123 }1124 1153 #endif 1125 1154 } -
trunk/Source/WebCore/platform/efl/RenderThemeEfl.h
r79080 r81777 31 31 #define RenderThemeEfl_h 32 32 33 #if ENABLE(VIDEO) 34 #include "MediaControlElements.h" 35 #endif 33 36 #include "RenderTheme.h" 34 37 … … 56 59 SliderVertical, 57 60 SliderHorizontal, 61 #if ENABLE(VIDEO) 62 MediaPlayPauseButton, 63 #endif 58 64 FormTypeLast 59 65 }; … … 182 188 void applyEdjeStateFromForm(Evas_Object*, ControlStates); 183 189 bool paintThemePart(RenderObject*, FormType, const PaintInfo&, const IntRect&); 190 191 #if ENABLE(VIDEO) 192 bool emitMediaButtonSignal(FormType, MediaControlElementType, const IntRect&); 193 #endif 184 194 185 195 Page* m_page; -
trunk/Source/WebKit/efl/ChangeLog
r81670 r81777 1 2011-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 1 15 2011-03-22 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 16 -
trunk/Source/WebKit/efl/DefaultTheme/default.edc
r69198 r81777 77 77 #include "widget/search/decoration/search_decoration.edc" 78 78 #include "widget/slider/slider.edc" 79 #include "widget/mediacontrol/playpausebutton/playpause_button.edc" 79 80 }
Note: See TracChangeset
for help on using the changeset viewer.