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

Side by Side Diff: Source/WebKit/chromium/public/WebMediaPlayerClient.h

Issue 13968007: Create WebInbandTextTrack and WebInbandTextTrackClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 7 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 /* 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
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
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 virtual void removeTextTrack(WebInbandTextTrack*) = 0;
89
86 protected: 90 protected:
87 ~WebMediaPlayerClient() { } 91 ~WebMediaPlayerClient() { }
88 }; 92 };
89 93
90 } // namespace WebKit 94 } // namespace WebKit
91 95
92 #endif 96 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebInbandTextTrackClient.h ('k') | Source/WebKit/chromium/src/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698