From b1b36c7df53a070fd6d93987df9d4dbd7b69eb98 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Tue, 30 Dec 2014 10:47:53 +0900 Subject: [PATCH] Bug 912864 Rename 'SelectMedia', 'MediaNextTrack' and 'MediaPreviousTrack' to 'MediaSelect', 'MediaTrackNext' and 'MediaTrackPrevious' r=smaug --- b2g/chrome/content/shell.js | 4 ++-- dom/events/KeyNameList.h | 6 +++--- widget/NativeKeyToDOMKeyName.h | 24 ++++++++++++------------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/b2g/chrome/content/shell.js b/b2g/chrome/content/shell.js index ddc1e42f918..41faeb7f53f 100644 --- a/b2g/chrome/content/shell.js +++ b/b2g/chrome/content/shell.js @@ -398,8 +398,8 @@ var shell = { } let mediaKeys = { - 'MediaNextTrack': 'media-next-track-button', - 'MediaPreviousTrack': 'media-previous-track-button', + 'MediaTrackNext': 'media-next-track-button', + 'MediaTrackPrevious': 'media-previous-track-button', 'MediaPause': 'media-pause-button', 'MediaPlay': 'media-play-button', 'MediaPlayPause': 'media-play-pause-button', diff --git a/dom/events/KeyNameList.h b/dom/events/KeyNameList.h index 056e233034e..ff536fc2adf 100644 --- a/dom/events/KeyNameList.h +++ b/dom/events/KeyNameList.h @@ -211,10 +211,10 @@ DEFINE_KEYNAME_WITH_SAME_NAME(F35) // DEFINE_KEYNAME_WITH_SAME_NAME(MailReply) // DEFINE_KEYNAME_WITH_SAME_NAME(MailSend) DEFINE_KEYNAME_WITH_SAME_NAME(MediaPlayPause) -DEFINE_KEYNAME_WITH_SAME_NAME(SelectMedia) // Rename to MediaSelect +DEFINE_KEYNAME_WITH_SAME_NAME(MediaSelect) DEFINE_KEYNAME_WITH_SAME_NAME(MediaStop) -DEFINE_KEYNAME_WITH_SAME_NAME(MediaNextTrack) // Rename to MediaTrackNext -DEFINE_KEYNAME_WITH_SAME_NAME(MediaPreviousTrack) // Rename to MediaTrackPrevious +DEFINE_KEYNAME_WITH_SAME_NAME(MediaTrackNext) +DEFINE_KEYNAME_WITH_SAME_NAME(MediaTrackPrevious) // DEFINE_KEYNAME_WITH_SAME_NAME(New) // DEFINE_KEYNAME_WITH_SAME_NAME(Open) // DEFINE_KEYNAME_WITH_SAME_NAME(Print) diff --git a/widget/NativeKeyToDOMKeyName.h b/widget/NativeKeyToDOMKeyName.h index 00fa0f68e89..6fa9ae0dd37 100644 --- a/widget/NativeKeyToDOMKeyName.h +++ b/widget/NativeKeyToDOMKeyName.h @@ -734,8 +734,8 @@ KEY_MAP_WIN (MediaPlayPause, VK_MEDIA_PLAY_PAUSE) KEY_MAP_QT (MediaPlayPause, Qt::Key_MediaTogglePlayPause) KEY_MAP_ANDROID (MediaPlayPause, AKEYCODE_MEDIA_PLAY_PAUSE) -// SelectMedia -KEY_MAP_WIN (SelectMedia, VK_LAUNCH_MEDIA_SELECT) +// MediaSelect +KEY_MAP_WIN (MediaSelect, VK_LAUNCH_MEDIA_SELECT) // MediaStop KEY_MAP_WIN (MediaStop, VK_MEDIA_STOP) @@ -743,17 +743,17 @@ KEY_MAP_GTK (MediaStop, GDK_AudioStop) KEY_MAP_QT (MediaStop, Qt::Key_MediaStop) KEY_MAP_ANDROID (MediaStop, AKEYCODE_MEDIA_STOP) -// MediaNextTrack -KEY_MAP_WIN (MediaNextTrack, VK_MEDIA_NEXT_TRACK) -KEY_MAP_GTK (MediaNextTrack, GDK_AudioNext) -KEY_MAP_QT (MediaNextTrack, Qt::Key_MediaNext) -KEY_MAP_ANDROID (MediaNextTrack, AKEYCODE_MEDIA_NEXT) +// MediaTrackNext +KEY_MAP_WIN (MediaTrackNext, VK_MEDIA_NEXT_TRACK) +KEY_MAP_GTK (MediaTrackNext, GDK_AudioNext) +KEY_MAP_QT (MediaTrackNext, Qt::Key_MediaNext) +KEY_MAP_ANDROID (MediaTrackNext, AKEYCODE_MEDIA_NEXT) -// MediaPreviousTrack -KEY_MAP_WIN (MediaPreviousTrack, VK_MEDIA_PREV_TRACK) -KEY_MAP_GTK (MediaPreviousTrack, GDK_AudioPrev) -KEY_MAP_QT (MediaPreviousTrack, Qt::Key_MediaPrevious) -KEY_MAP_ANDROID (MediaPreviousTrack, AKEYCODE_MEDIA_PREVIOUS) +// MediaTrackPrevious +KEY_MAP_WIN (MediaTrackPrevious, VK_MEDIA_PREV_TRACK) +KEY_MAP_GTK (MediaTrackPrevious, GDK_AudioPrev) +KEY_MAP_QT (MediaTrackPrevious, Qt::Key_MediaPrevious) +KEY_MAP_ANDROID (MediaTrackPrevious, AKEYCODE_MEDIA_PREVIOUS) // VolumeDown KEY_MAP_WIN (VolumeDown, VK_VOLUME_DOWN)