diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 19:02:48 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 19:02:48 +0000 |
commit | e0d2dbb4ba1ddfb75681396b62f1326c169c27a4 (patch) | |
tree | 5aa517d785d5f73690cb76f35b81be5f03d3fb4d /webkit | |
parent | d033a6c9e41f59e9985bb8c86ddd819cc5a5cc03 (diff) | |
download | chromium_src-e0d2dbb4ba1ddfb75681396b62f1326c169c27a4.zip chromium_src-e0d2dbb4ba1ddfb75681396b62f1326c169c27a4.tar.gz chromium_src-e0d2dbb4ba1ddfb75681396b62f1326c169c27a4.tar.bz2 |
Move MediaPlayerAction out of context_menu.h into webview.h since it's really only used by webview.
Review URL: http://codereview.chromium.org/174143
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/context_menu.h | 25 | ||||
-rw-r--r-- | webkit/glue/media_player_action.h | 28 | ||||
-rw-r--r-- | webkit/glue/webview.h | 2 | ||||
-rw-r--r-- | webkit/glue/webview_impl.cc | 1 |
4 files changed, 33 insertions, 23 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h index 975ad275..bdeba6c 100644 --- a/webkit/glue/context_menu.h +++ b/webkit/glue/context_menu.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ -#define WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ +#ifndef WEBKIT_GLUE_CONTEXT_MENU_H_ +#define WEBKIT_GLUE_CONTEXT_MENU_H_ #include <vector> @@ -154,23 +154,4 @@ struct ContextMenuParams { std::string frame_charset; }; -struct MediaPlayerAction { - enum CommandTypeBit { - NONE = 0x0, - PLAY = 0x1, - PAUSE = 0x2, - MUTE = 0x4, - UNMUTE = 0x8, - LOOP = 0x10, - NO_LOOP = 0x20, - }; - - // A bitfield representing the actions that the context menu should execute - // on the originating node. - int32 command; - - MediaPlayerAction() : command(NONE) {} - explicit MediaPlayerAction(int c) : command(c) {} -}; - -#endif // WEBKIT_GLUE_CONTEXT_NODE_TYPES_H__ +#endif // WEBKIT_GLUE_CONTEXT_MENU_H_ diff --git a/webkit/glue/media_player_action.h b/webkit/glue/media_player_action.h new file mode 100644 index 0000000..b4506fd --- /dev/null +++ b/webkit/glue/media_player_action.h @@ -0,0 +1,28 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_ +#define WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_ + +// Commands that can be sent to the MediaPlayer via a WebView. +struct MediaPlayerAction { + enum CommandTypeBit { + NONE = 0x0, + PLAY = 0x1, + PAUSE = 0x2, + MUTE = 0x4, + UNMUTE = 0x8, + LOOP = 0x10, + NO_LOOP = 0x20, + }; + + // A bitfield representing the actions that the context menu should execute + // on the originating node. + int32 command; + + MediaPlayerAction() : command(NONE) {} + explicit MediaPlayerAction(int c) : command(c) {} +}; + +#endif // WEBKIT_GLUE_MEDIA_PLAYER_ACTION_H_ diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h index 4b9c098..42334b1 100644 --- a/webkit/glue/webview.h +++ b/webkit/glue/webview.h @@ -18,10 +18,10 @@ class WebSettings; struct WebPoint; } -struct MediaPlayerAction; class GURL; class WebDevToolsAgent; class WebViewDelegate; +struct MediaPlayerAction; // // @class WebView diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index aa19fcc..4b486d5 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -75,6 +75,7 @@ MSVC_POP_WARNING(); #include "webkit/glue/glue_util.h" #include "webkit/glue/image_resource_fetcher.h" #include "webkit/glue/inspector_client_impl.h" +#include "webkit/glue/media_player_action.h" #include "webkit/glue/searchable_form_data.h" #include "webkit/glue/webdevtoolsagent_impl.h" #include "webkit/glue/webkit_glue.h" |