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

Side by Side Diff: chrome/common/render_messages.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 unified diff | Download patch
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 LogParam(p.http_status_code, l); 872 LogParam(p.http_status_code, l);
873 l->append(L")"); 873 l->append(L")");
874 } 874 }
875 }; 875 };
876 876
877 template <> 877 template <>
878 struct ParamTraits<ContextMenuMediaParams> { 878 struct ParamTraits<ContextMenuMediaParams> {
879 typedef ContextMenuMediaParams param_type; 879 typedef ContextMenuMediaParams param_type;
880 static void Write(Message* m, const param_type& p) { 880 static void Write(Message* m, const param_type& p) {
881 WriteParam(m, p.player_state); 881 WriteParam(m, p.player_state);
882 WriteParam(m, p.has_audio);
882 } 883 }
883 static bool Read(const Message* m, void** iter, param_type* p) { 884 static bool Read(const Message* m, void** iter, param_type* p) {
884 return 885 return
885 ReadParam(m, iter, &p->player_state); 886 ReadParam(m, iter, &p->player_state) &&
887 ReadParam(m, iter, &p->has_audio);
886 } 888 }
887 }; 889 };
888 890
889 template <> 891 template <>
890 struct ParamTraits<ContextMenuParams> { 892 struct ParamTraits<ContextMenuParams> {
891 typedef ContextMenuParams param_type; 893 typedef ContextMenuParams param_type;
892 static void Write(Message* m, const param_type& p) { 894 static void Write(Message* m, const param_type& p) {
893 WriteParam(m, p.node_type); 895 WriteParam(m, p.node_type);
894 WriteParam(m, p.x); 896 WriteParam(m, p.x);
895 WriteParam(m, p.y); 897 WriteParam(m, p.y);
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 } 2041 }
2040 }; 2042 };
2041 2043
2042 } // namespace IPC 2044 } // namespace IPC
2043 2045
2044 2046
2045 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 2047 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
2046 #include "ipc/ipc_message_macros.h" 2048 #include "ipc/ipc_message_macros.h"
2047 2049
2048 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 2050 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698