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

Side by Side 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 unified diff | 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 »
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 WEBKIT_GLUE_CONTEXT_MENU_H_ 5 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_
6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 PAUSED = 0x2, 75 PAUSED = 0x2,
76 MUTED = 0x4, 76 MUTED = 0x4,
77 LOOP = 0x8, 77 LOOP = 0x8,
78 CAN_SAVE = 0x10, 78 CAN_SAVE = 0x10,
79 }; 79 };
80 80
81 // A bitfield representing the current state of the player, such as 81 // A bitfield representing the current state of the player, such as
82 // playing, muted, etc. 82 // playing, muted, etc.
83 int32 player_state; 83 int32 player_state;
84 84
85 // Whether a playable audio track is present.
86 bool has_audio;
87
85 ContextMenuMediaParams() 88 ContextMenuMediaParams()
86 : player_state(NO_STATE) { 89 : player_state(NO_STATE), has_audio(false) {
87 } 90 }
88 }; 91 };
89 92
90 // Parameters structure for ViewHostMsg_ContextMenu. 93 // Parameters structure for ViewHostMsg_ContextMenu.
91 // FIXME(beng): This would be more useful in the future and more efficient 94 // FIXME(beng): This would be more useful in the future and more efficient
92 // if the parameters here weren't so literally mapped to what 95 // if the parameters here weren't so literally mapped to what
93 // they contain for the ContextMenu task. It might be better 96 // they contain for the ContextMenu task. It might be better
94 // to make the string fields more generic so that this object 97 // to make the string fields more generic so that this object
95 // could be used for more contextual actions. 98 // could be used for more contextual actions.
96 struct ContextMenuParams { 99 struct ContextMenuParams {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 int edit_flags; 151 int edit_flags;
149 152
150 // The security info for the resource we are showing the menu on. 153 // The security info for the resource we are showing the menu on.
151 std::string security_info; 154 std::string security_info;
152 155
153 // The character encoding of the frame on which the menu is invoked. 156 // The character encoding of the frame on which the menu is invoked.
154 std::string frame_charset; 157 std::string frame_charset;
155 }; 158 };
156 159
157 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ 160 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_
OLDNEW
« 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