summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 19:52:44 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 19:52:44 +0000
commite626d7f115a1319421d1e2d5da85b6f0bd66877f (patch)
treecd6c50923fbb063c1980315c2db5447fbfee0086 /chrome/common/render_messages.h
parentf1f188943ba5fd66cc54c813d9ed27596a7b29e9 (diff)
downloadchromium_src-e626d7f115a1319421d1e2d5da85b6f0bd66877f.zip
chromium_src-e626d7f115a1319421d1e2d5da85b6f0bd66877f.tar.gz
chromium_src-e626d7f115a1319421d1e2d5da85b6f0bd66877f.tar.bz2
Remove Playback Rate from the context menu.
This feature is better implemented as an extension rather than being put into the absolute-core UI. Review URL: http://codereview.chromium.org/164301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23208 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index fefa3ac..f16957c7 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -876,12 +876,10 @@ struct ParamTraits<ContextMenuMediaParams> {
typedef ContextMenuMediaParams param_type;
static void Write(Message* m, const param_type& p) {
WriteParam(m, p.player_state);
- WriteParam(m, p.playback_rate);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
- ReadParam(m, iter, &p->player_state) &&
- ReadParam(m, iter, &p->playback_rate);
+ ReadParam(m, iter, &p->player_state);
}
};
@@ -935,12 +933,10 @@ struct ParamTraits<MediaPlayerAction> {
typedef MediaPlayerAction param_type;
static void Write(Message* m, const param_type& p) {
WriteParam(m, p.command);
- WriteParam(m, p.playback_rate);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
- ReadParam(m, iter, &p->command) &&
- ReadParam(m, iter, &p->playback_rate);
+ ReadParam(m, iter, &p->command);
}
static void Log(const param_type& p, std::wstring* l) {
std::wstring event = L"";
@@ -960,11 +956,6 @@ struct ParamTraits<MediaPlayerAction> {
l->append(L"LOOP|");
if (p.command & MediaPlayerAction::NO_LOOP)
l->append(L"NO_LOOP|");
- if (p.command & MediaPlayerAction::SET_PLAYBACK_RATE) {
- l->append(L"SET_PLAYBACK_RATE [");
- LogParam(p.playback_rate, l);
- l->append(L"]|");
- }
l->append(L")");
}
}