blob: 14edcaa01c9370ded3b736a88b88394729c30624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (c) 2012 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 WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
#define WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
namespace webkit_media {
class WebMediaPlayerImpl;
// An interface to allow a WebMediaPlayerImpl to communicate changes of state
// to objects that need to know.
class WebMediaPlayerDelegate {
public:
WebMediaPlayerDelegate() {}
virtual ~WebMediaPlayerDelegate() {}
// The specified player started playing media.
virtual void DidPlay(WebMediaPlayerImpl* player) {}
// The specified player stopped playing media.
virtual void DidPause(WebMediaPlayerImpl* player) {}
// The specified player was destroyed. Do not call any methods on it.
virtual void PlayerGone(WebMediaPlayerImpl* player) {}
};
} // namespace webkit_media
#endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
|