| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 100 virtual void load(LoadType, const WebURL&, CORSMode) = 0; |
| 101 | 101 |
| 102 // Playback controls. | 102 // Playback controls. |
| 103 virtual void play() = 0; | 103 virtual void play() = 0; |
| 104 virtual void pause() = 0; | 104 virtual void pause() = 0; |
| 105 virtual bool supportsSave() const = 0; | 105 virtual bool supportsSave() const = 0; |
| 106 virtual void seek(double seconds) = 0; | 106 virtual void seek(double seconds) = 0; |
| 107 virtual void setRate(double) = 0; | 107 virtual void setRate(double) = 0; |
| 108 virtual void setVolume(double) = 0; | 108 virtual void setVolume(double) = 0; |
| 109 virtual void setPreload(Preload) { }; | 109 virtual void setPreload(Preload) { }; |
| 110 virtual const WebTimeRanges& buffered() = 0; | 110 virtual WebTimeRanges buffered() const = 0; |
| 111 virtual double maxTimeSeekable() const = 0; | 111 virtual double maxTimeSeekable() const = 0; |
| 112 | 112 |
| 113 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0; | 113 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0; |
| 114 | 114 |
| 115 // True if the loaded media has a playable video/audio track. | 115 // True if the loaded media has a playable video/audio track. |
| 116 virtual bool hasVideo() const = 0; | 116 virtual bool hasVideo() const = 0; |
| 117 virtual bool hasAudio() const = 0; | 117 virtual bool hasAudio() const = 0; |
| 118 | 118 |
| 119 // Dimension of the video. | 119 // Dimension of the video. |
| 120 virtual WebSize naturalSize() const = 0; | 120 virtual WebSize naturalSize() const = 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Instruct WebMediaPlayer to enter/exit fullscreen. | 160 // Instruct WebMediaPlayer to enter/exit fullscreen. |
| 161 virtual void enterFullscreen() { } | 161 virtual void enterFullscreen() { } |
| 162 virtual void exitFullscreen() { } | 162 virtual void exitFullscreen() { } |
| 163 // Returns true if the player can enter fullscreen. | 163 // Returns true if the player can enter fullscreen. |
| 164 virtual bool canEnterFullscreen() const { return false; } | 164 virtual bool canEnterFullscreen() const { return false; } |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif | 169 #endif |
| OLD | NEW |