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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }; | 93 }; |
94 | 94 |
95 // Represents synchronous exceptions that can be thrown from the Encrypted | 95 // Represents synchronous exceptions that can be thrown from the Encrypted |
96 // Media methods. This is different from the asynchronous MediaKeyError. | 96 // Media methods. This is different from the asynchronous MediaKeyError. |
97 enum MediaKeyException { | 97 enum MediaKeyException { |
98 MediaKeyExceptionNoError, | 98 MediaKeyExceptionNoError, |
99 MediaKeyExceptionInvalidPlayerState, | 99 MediaKeyExceptionInvalidPlayerState, |
100 MediaKeyExceptionKeySystemNotSupported, | 100 MediaKeyExceptionKeySystemNotSupported, |
101 }; | 101 }; |
102 | 102 |
| 103 enum CORSMode { |
| 104 CORSModeUnspecified, |
| 105 CORSModeAnonymous, |
| 106 CORSModeUseCredentials, |
| 107 }; |
| 108 |
103 virtual ~WebMediaPlayer() {} | 109 virtual ~WebMediaPlayer() {} |
104 | 110 |
105 virtual void load(const WebURL&) = 0; | 111 virtual void load(const WebURL&) = 0; |
106 virtual void cancelLoad() = 0; | 112 virtual void cancelLoad() = 0; |
107 | 113 |
108 // Playback controls. | 114 // Playback controls. |
109 virtual void play() = 0; | 115 virtual void play() = 0; |
110 virtual void pause() = 0; | 116 virtual void pause() = 0; |
111 virtual bool supportsFullscreen() const = 0; | 117 virtual bool supportsFullscreen() const = 0; |
112 virtual bool supportsSave() const = 0; | 118 virtual bool supportsSave() const = 0; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 192 |
187 // Instuct WebMediaPlayer to enter/exit fullscreen. | 193 // Instuct WebMediaPlayer to enter/exit fullscreen. |
188 // Returns true if the player can enter fullscreen. | 194 // Returns true if the player can enter fullscreen. |
189 virtual bool enterFullscreen() { return false; } | 195 virtual bool enterFullscreen() { return false; } |
190 virtual void exitFullscreen() { } | 196 virtual void exitFullscreen() { } |
191 }; | 197 }; |
192 | 198 |
193 } // namespace WebKit | 199 } // namespace WebKit |
194 | 200 |
195 #endif | 201 #endif |
OLD | NEW |