Changeset 56415 in webkit
- Timestamp:
- Mar 23, 2010 2:15:40 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r56410 r56415 1 2010-03-23 Sergey Ulanov <sergeyu@chromium.org> 2 3 Reviewed by Dmitry Titov. 4 5 Changes needed to implement Show/Hide Controls command for <video> in 6 chrome: (1) added Controls action in WebMediaPlayerAction that toggles 7 controls for media player, (2) added MediaHasVideo in 8 WebContextMenuData so that controls can be made toggleable only for 9 video player but not for audio. 10 https://bugs.webkit.org/show_bug.cgi?id=36460 11 12 * public/WebContextMenuData.h: 13 (WebKit::WebContextMenuData::): 14 * public/WebMediaPlayerAction.h: 15 (WebKit::WebMediaPlayerAction::): 16 * src/ContextMenuClientImpl.cpp: 17 (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 18 * src/WebViewImpl.cpp: 19 (WebKit::WebViewImpl::performMediaPlayerAction): 20 1 21 2010-03-23 Yury Semikhatsky <yurys@chromium.org> 2 22 -
trunk/WebKit/chromium/public/WebContextMenuData.h
r55029 r56415 84 84 MediaCanSave = 0x10, 85 85 MediaHasAudio = 0x20, 86 MediaHasVideo = 0x40, 87 MediaControls = 0x80, 86 88 }; 87 89 -
trunk/WebKit/chromium/public/WebMediaPlayerAction.h
r50690 r56415 39 39 Play, 40 40 Mute, 41 Loop 41 Loop, 42 Controls 42 43 }; 43 44 -
trunk/WebKit/chromium/src/ContextMenuClientImpl.cpp
r55029 r56415 182 182 if (mediaElement->hasAudio()) 183 183 data.mediaFlags |= WebContextMenuData::MediaHasAudio; 184 if (mediaElement->hasVideo()) 185 data.mediaFlags |= WebContextMenuData::MediaHasVideo; 186 if (mediaElement->controls()) 187 data.mediaFlags |= WebContextMenuData::MediaControls; 184 188 } 185 189 -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r56376 r56415 1453 1453 mediaElement->setLoop(action.enable); 1454 1454 break; 1455 case WebMediaPlayerAction::Controls: 1456 mediaElement->setControls(action.enable); 1457 break; 1455 1458 default: 1456 1459 ASSERT_NOT_REACHED();
Note: See TracChangeset
for help on using the changeset viewer.