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

Unified Diff: ash/common/accelerators/accelerator_controller.cc

Issue 2563643003: mash: Change the MediaDelegate to a Media{Controller,Client}. (Closed)
Patch Set: Comment fixes Created 4 years 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 | « ash/BUILD.gn ('k') | ash/common/media_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/accelerator_controller.cc
diff --git a/ash/common/accelerators/accelerator_controller.cc b/ash/common/accelerators/accelerator_controller.cc
index d3993c22b64df7c6970912999f70aadbdd8f0f58..db032bb3a8cafe407d68f3628775a7d7165a25af 100644
--- a/ash/common/accelerators/accelerator_controller.cc
+++ b/ash/common/accelerators/accelerator_controller.cc
@@ -13,7 +13,7 @@
#include "ash/common/accessibility_types.h"
#include "ash/common/focus_cycler.h"
#include "ash/common/ime_control_delegate.h"
-#include "ash/common/media_delegate.h"
+#include "ash/common/media_controller.h"
#include "ash/common/multi_profile_uma.h"
#include "ash/common/new_window_controller.h"
#include "ash/common/session/session_state_delegate.h"
@@ -133,15 +133,15 @@ void HandleLaunchLastApp() {
}
void HandleMediaNextTrack() {
- WmShell::Get()->media_delegate()->HandleMediaNextTrack();
+ WmShell::Get()->media_controller()->HandleMediaNextTrack();
}
void HandleMediaPlayPause() {
- WmShell::Get()->media_delegate()->HandleMediaPlayPause();
+ WmShell::Get()->media_controller()->HandleMediaPlayPause();
}
void HandleMediaPrevTrack() {
- WmShell::Get()->media_delegate()->HandleMediaPrevTrack();
+ WmShell::Get()->media_controller()->HandleMediaPrevTrack();
}
bool CanHandleNewIncognitoWindow() {
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/media_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698