| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 virtual ~WebMediaPlayer() {} | 62 virtual ~WebMediaPlayer() {} |
| 63 | 63 |
| 64 virtual void load(const WebURL&) = 0; | 64 virtual void load(const WebURL&) = 0; |
| 65 virtual void cancelLoad() = 0; | 65 virtual void cancelLoad() = 0; |
| 66 | 66 |
| 67 // Playback controls. | 67 // Playback controls. |
| 68 virtual void play() = 0; | 68 virtual void play() = 0; |
| 69 virtual void pause() = 0; | 69 virtual void pause() = 0; |
| 70 virtual bool supportsFullscreen() const = 0; |
| 71 virtual bool supportsSave() const = 0; |
| 70 virtual void seek(float seconds) = 0; | 72 virtual void seek(float seconds) = 0; |
| 71 virtual void setEndTime(float seconds) = 0; | 73 virtual void setEndTime(float seconds) = 0; |
| 72 virtual void setRate(float) = 0; | 74 virtual void setRate(float) = 0; |
| 73 virtual void setVolume(float) = 0; | 75 virtual void setVolume(float) = 0; |
| 74 virtual void setVisible(bool) = 0; | 76 virtual void setVisible(bool) = 0; |
| 75 virtual bool setAutoBuffer(bool) = 0; | 77 virtual bool setAutoBuffer(bool) = 0; |
| 76 virtual bool totalBytesKnown() = 0; | 78 virtual bool totalBytesKnown() = 0; |
| 77 virtual float maxTimeBuffered() const = 0; | 79 virtual float maxTimeBuffered() const = 0; |
| 78 virtual float maxTimeSeekable() const = 0; | 80 virtual float maxTimeSeekable() const = 0; |
| 79 | 81 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 100 virtual NetworkState networkState() const = 0; | 102 virtual NetworkState networkState() const = 0; |
| 101 virtual ReadyState readyState() const = 0; | 103 virtual ReadyState readyState() const = 0; |
| 102 | 104 |
| 103 virtual unsigned long long bytesLoaded() const = 0; | 105 virtual unsigned long long bytesLoaded() const = 0; |
| 104 virtual unsigned long long totalBytes() const = 0; | 106 virtual unsigned long long totalBytes() const = 0; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace WebKit | 109 } // namespace WebKit |
| 108 | 110 |
| 109 #endif | 111 #endif |
| OLD | NEW |