Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebMediaPlayerClient_h | 31 #ifndef WebMediaPlayerClient_h |
| 32 #define WebMediaPlayerClient_h | 32 #define WebMediaPlayerClient_h |
| 33 | 33 |
| 34 #include "WebMediaPlayer.h" | 34 #include "WebMediaPlayer.h" |
| 35 | 35 |
| 36 namespace WebKit { | 36 namespace WebKit { |
| 37 | 37 |
| 38 class WebFrame; | 38 class WebFrame; |
| 39 class WebInbandTextTrack; | |
| 39 class WebLayer; | 40 class WebLayer; |
| 40 class WebMediaSource; | 41 class WebMediaSource; |
| 41 class WebPlugin; | 42 class WebPlugin; |
| 42 class WebRequest; | 43 class WebRequest; |
| 43 class WebURL; | 44 class WebURL; |
| 44 | 45 |
| 45 class WebMediaPlayerClient { | 46 class WebMediaPlayerClient { |
| 46 public: | 47 public: |
| 47 enum MediaKeyErrorCode { | 48 enum MediaKeyErrorCode { |
| 48 MediaKeyErrorCodeUnknown = 1, | 49 MediaKeyErrorCodeUnknown = 1, |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 76 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) = 0; | 77 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) = 0; |
| 77 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) = 0; | 78 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) = 0; |
| 78 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) = 0; | 79 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) = 0; |
| 79 virtual void keyNeeded(const WebString& keySystem, const WebString& sessionI d, const unsigned char* initData, unsigned initDataLength) = 0; | 80 virtual void keyNeeded(const WebString& keySystem, const WebString& sessionI d, const unsigned char* initData, unsigned initDataLength) = 0; |
| 80 // The returned pointer is valid until closeHelperPlugin() is called. | 81 // The returned pointer is valid until closeHelperPlugin() is called. |
| 81 // Returns 0 if the plugin could not be instantiated. | 82 // Returns 0 if the plugin could not be instantiated. |
| 82 virtual WebPlugin* createHelperPlugin(const WebString& pluginType, WebFrame* ) = 0; | 83 virtual WebPlugin* createHelperPlugin(const WebString& pluginType, WebFrame* ) = 0; |
| 83 virtual void closeHelperPlugin() = 0; | 84 virtual void closeHelperPlugin() = 0; |
| 84 virtual bool needsWebLayerForVideo() const = 0; | 85 virtual bool needsWebLayerForVideo() const = 0; |
| 85 virtual void setWebLayer(WebLayer*) = 0; | 86 virtual void setWebLayer(WebLayer*) = 0; |
| 87 virtual void addTextTrack(WebInbandTextTrack*) = 0; | |
| 88 | |
|
acolwell GONE FROM CHROMIUM
2013/04/19 17:45:49
Might as well add the removeTextTrack() method as
Matthew Heaney (Chromium)
2013/04/20 04:19:25
Done.
| |
| 86 protected: | 89 protected: |
| 87 ~WebMediaPlayerClient() { } | 90 ~WebMediaPlayerClient() { } |
| 88 }; | 91 }; |
| 89 | 92 |
| 90 } // namespace WebKit | 93 } // namespace WebKit |
| 91 | 94 |
| 92 #endif | 95 #endif |
| OLD | NEW |