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

Unified Diff: chrome/common/render_messages.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 28235)
+++ chrome/common/render_messages.h (working copy)
@@ -37,7 +37,6 @@
#include "webkit/glue/autofill_form.h"
#include "webkit/glue/context_menu.h"
#include "webkit/glue/form_data.h"
-#include "webkit/glue/media_player_action.h"
#include "webkit/glue/password_form.h"
#include "webkit/glue/password_form_dom_manager.h"
#include "webkit/glue/resource_loader_bridge.h"
@@ -953,39 +952,6 @@
}
};
-template <>
-struct ParamTraits<MediaPlayerAction> {
- typedef MediaPlayerAction param_type;
- static void Write(Message* m, const param_type& p) {
- WriteParam(m, p.command);
- }
- static bool Read(const Message* m, void** iter, param_type* p) {
- return
- ReadParam(m, iter, &p->command);
- }
- static void Log(const param_type& p, std::wstring* l) {
- std::wstring event = L"";
- if (!p.command) {
- l->append(L"NONE");
- } else {
- l->append(L"(");
- if (p.command & MediaPlayerAction::PLAY)
- l->append(L"PLAY|");
- if (p.command & MediaPlayerAction::PAUSE)
- l->append(L"PAUSE|");
- if (p.command & MediaPlayerAction::MUTE)
- l->append(L"MUTE|");
- if (p.command & MediaPlayerAction::UNMUTE)
- l->append(L"UNMUTE|");
- if (p.command & MediaPlayerAction::LOOP)
- l->append(L"LOOP|");
- if (p.command & MediaPlayerAction::NO_LOOP)
- l->append(L"NO_LOOP|");
- l->append(L")");
- }
- }
-};
-
// Traits for ViewHostMsg_PaintRect_Params structure to pack/unpack.
template <>
struct ParamTraits<ViewHostMsg_PaintRect_Params> {
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698