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

Side by Side Diff: media/blink/webmediaplayer_delegate.h

Issue 2189533002: Add media Remoter mojo interface and RendererWMPDelegate accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GYP target/deps. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_
7 7
8 #include "media/mojo/interfaces/remoter.mojom.h"
9
8 namespace blink { 10 namespace blink {
9 class WebMediaPlayer; 11 class WebMediaPlayer;
10 } 12 }
11 namespace media { 13 namespace media {
12 14
13 // An interface to allow a WebMediaPlayer to communicate changes of state to 15 // An interface to allow a WebMediaPlayer to communicate changes of state to
14 // objects that need to know. 16 // objects that need to know.
15 class WebMediaPlayerDelegate { 17 class WebMediaPlayerDelegate {
16 public: 18 public:
17 class Observer { 19 class Observer {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 63
62 // The specified player was destroyed or suspended and will no longer accept 64 // The specified player was destroyed or suspended and will no longer accept
63 // Observer::OnPlay() or Observer::OnPause() calls. This may be called 65 // Observer::OnPlay() or Observer::OnPause() calls. This may be called
64 // multiple times in row. Note: Clients must still call RemoveObserver() to 66 // multiple times in row. Note: Clients must still call RemoveObserver() to
65 // unsubscribe from callbacks. 67 // unsubscribe from callbacks.
66 virtual void PlayerGone(int delegate_id) = 0; 68 virtual void PlayerGone(int delegate_id) = 0;
67 69
68 // Returns whether the render frame is currently hidden. 70 // Returns whether the render frame is currently hidden.
69 virtual bool IsHidden() = 0; 71 virtual bool IsHidden() = 0;
70 72
73 // Returns a pointer to the media Remoter, or null if none is available.
74 virtual mojom::Remoter* GetRemoter() = 0;
75
71 protected: 76 protected:
72 virtual ~WebMediaPlayerDelegate() {} 77 virtual ~WebMediaPlayerDelegate() {}
73 }; 78 };
74 79
75 } // namespace media 80 } // namespace media
76 81
77 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ 82 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698