Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Unified Diff: webkit/glue/context_menu_client_impl.cc

Issue 174018: Disable mute/unmute when media does not have an audio track. (Closed)
Patch Set: Merged Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu_client_impl.cc
diff --git a/webkit/glue/context_menu_client_impl.cc b/webkit/glue/context_menu_client_impl.cc
index b32b572cf68cccdf6abdf7e37a83fc6626417856..ca2dee8b851b026a6960cb10c794292f790fd61b 100644
--- a/webkit/glue/context_menu_client_impl.cc
+++ b/webkit/glue/context_menu_client_impl.cc
@@ -207,6 +207,8 @@ WebCore::PlatformMenuDescription
if (media_element->supportsSave()) {
media_params.player_state |= ContextMenuMediaParams::CAN_SAVE;
}
+
+ media_params.has_audio = media_element->hasAudio();
}
// If it's not a link, an image, a media element, or an image/media link,
« no previous file with comments | « webkit/glue/context_menu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698