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

Unified Diff: webkit/glue/context_menu.h

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 | « chrome/common/render_messages.h ('k') | webkit/glue/context_menu_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu.h
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index bdeba6c5b30e82cd0b2131c5ddf66ac1289a4098..e4b556b4272a634ca69a5a73890a565b25d9a778 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -82,8 +82,11 @@ struct ContextMenuMediaParams {
// playing, muted, etc.
int32 player_state;
+ // Whether a playable audio track is present.
+ bool has_audio;
+
ContextMenuMediaParams()
- : player_state(NO_STATE) {
+ : player_state(NO_STATE), has_audio(false) {
}
};
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/context_menu_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698