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

Unified Diff: ash/common/media_delegate.h

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/common/media_controller.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/media_delegate.h
diff --git a/ash/common/media_delegate.h b/ash/common/media_delegate.h
deleted file mode 100644
index 018add713ced81231f2b53e295f2232a443ab747..0000000000000000000000000000000000000000
--- a/ash/common/media_delegate.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_MEDIA_DELEGATE_H_
-#define ASH_COMMON_MEDIA_DELEGATE_H_
-
-#include "ash/public/cpp/session_types.h"
-
-namespace ash {
-
-enum MediaCaptureState {
- MEDIA_CAPTURE_NONE = 0,
- MEDIA_CAPTURE_AUDIO = 1 << 0,
- MEDIA_CAPTURE_VIDEO = 1 << 1,
- MEDIA_CAPTURE_AUDIO_VIDEO = MEDIA_CAPTURE_AUDIO | MEDIA_CAPTURE_VIDEO,
-};
-
-// A delegate class to control media playback.
-class MediaDelegate {
- public:
- virtual ~MediaDelegate() {}
-
- // Handles the Next Track Media shortcut key.
- virtual void HandleMediaNextTrack() = 0;
-
- // Handles the Play/Pause Toggle Media shortcut key.
- virtual void HandleMediaPlayPause() = 0;
-
- // Handles the Previous Track Media shortcut key.
- virtual void HandleMediaPrevTrack() = 0;
-
- // Returns the current media recording state of web contents that belongs to
- // the the user @ |index|. See session_types.h for a description of UserIndex.
- virtual MediaCaptureState GetMediaCaptureState(UserIndex index) = 0;
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_MEDIA_DELEGATE_H_
« no previous file with comments | « ash/common/media_controller.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698