Introduce MediaDelegate
BUG=none
Review URL: https://codereview.chromium.org/48523010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232330 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index e4144194e..d890625 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -10,6 +10,7 @@
#include "ash/default_user_wallpaper_delegate.h"
#include "ash/host/root_window_host_factory.h"
#include "ash/keyboard_controller_proxy_stub.h"
+#include "ash/media_delegate.h"
#include "ash/new_window_delegate.h"
#include "ash/session_state_delegate.h"
#include "ash/session_state_delegate_stub.h"
@@ -51,6 +52,19 @@
DISALLOW_COPY_AND_ASSIGN(NewWindowDelegateImpl);
};
+class MediaDelegateImpl : public MediaDelegate {
+ public:
+ MediaDelegateImpl() {}
+ virtual ~MediaDelegateImpl() {}
+
+ virtual void HandleMediaNextTrack() OVERRIDE {}
+ virtual void HandleMediaPlayPause() OVERRIDE {}
+ virtual void HandleMediaPrevTrack() OVERRIDE {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MediaDelegateImpl);
+};
+
} // namespace
ShellDelegateImpl::ShellDelegateImpl()
@@ -136,6 +150,10 @@
return new NewWindowDelegateImpl;
}
+ash::MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() {
+ return new MediaDelegateImpl;
+}
+
aura::client::UserActionClient* ShellDelegateImpl::CreateUserActionClient() {
return NULL;
}
@@ -143,15 +161,6 @@
void ShellDelegateImpl::RecordUserMetricsAction(UserMetricsAction action) {
}
-void ShellDelegateImpl::HandleMediaNextTrack() {
-}
-
-void ShellDelegateImpl::HandleMediaPlayPause() {
-}
-
-void ShellDelegateImpl::HandleMediaPrevTrack() {
-}
-
ui::MenuModel* ShellDelegateImpl::CreateContextMenu(aura::Window* root) {
return new ContextMenu(root);
}