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

Side by Side Diff: webkit/glue/media_player_action.h

Issue 251103: Move MediaPlayerAction to WebMediaPlayerAction. Switch to an enum and a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebView.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_
6 #define WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_
7
8 // Commands that can be sent to the MediaPlayer via a WebView.
9 struct MediaPlayerAction {
10 enum CommandTypeBit {
11 NONE = 0x0,
12 PLAY = 0x1,
13 PAUSE = 0x2,
14 MUTE = 0x4,
15 UNMUTE = 0x8,
16 LOOP = 0x10,
17 NO_LOOP = 0x20,
18 };
19
20 // A bitfield representing the actions that the context menu should execute
21 // on the originating node.
22 int32 command;
23
24 MediaPlayerAction() : command(NONE) {}
25 explicit MediaPlayerAction(int c) : command(c) {}
26 };
27
28 #endif // WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_
OLDNEW
« no previous file with comments | « webkit/api/public/WebView.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698