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