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/media_controller.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 months 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/material_design/material_design_controller.cc ('k') | ash/common/media_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/media_controller.h
diff --git a/ash/common/media_controller.h b/ash/common/media_controller.h
deleted file mode 100644
index 4a8eb1cd5fb5c248363e47fee1fbf85e589ce423..0000000000000000000000000000000000000000
--- a/ash/common/media_controller.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 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_CONTROLLER_H_
-#define ASH_COMMON_MEDIA_CONTROLLER_H_
-
-#include "ash/public/interfaces/media.mojom.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "mojo/public/cpp/bindings/associated_binding.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-
-namespace ash {
-
-// Forwards notifications from the MediaController to observers.
-class MediaCaptureObserver {
- public:
- // Called when media capture state has changed.
- virtual void OnMediaCaptureChanged(
- const std::vector<mojom::MediaCaptureState>& capture_states) = 0;
-
- protected:
- virtual ~MediaCaptureObserver() {}
-};
-
-// Provides the MediaController interface to the outside world. This lets a
-// consumer of ash provide a MediaClient, which we will dispatch to if one has
-// been provided to us.
-class MediaController : public mojom::MediaController,
- public mojom::MediaClient {
- public:
- MediaController();
- ~MediaController() override;
-
- void BindRequest(mojom::MediaControllerRequest request);
-
- void AddObserver(MediaCaptureObserver* observer);
- void RemoveObserver(MediaCaptureObserver* observer);
-
- // mojom::MediaClient:
- void HandleMediaNextTrack() override;
- void HandleMediaPlayPause() override;
- void HandleMediaPrevTrack() override;
- void RequestCaptureState() override;
-
- private:
- friend class MultiProfileMediaTrayItemTest;
-
- // mojom::MediaController:
- void SetClient(mojom::MediaClientAssociatedPtrInfo client) override;
- void NotifyCaptureState(
- const std::vector<mojom::MediaCaptureState>& capture_states) override;
-
- mojo::BindingSet<mojom::MediaController> bindings_;
-
- mojom::MediaClientAssociatedPtr client_;
-
- base::ObserverList<MediaCaptureObserver> observers_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaController);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_MEDIA_CONTROLLER_H_
« no previous file with comments | « ash/common/material_design/material_design_controller.cc ('k') | ash/common/media_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698