| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool didPassCORSAccessCheck() const override; | 135 bool didPassCORSAccessCheck() const override; |
| 136 | 136 |
| 137 double mediaTimeForTimeValue(double timeValue) const override; | 137 double mediaTimeForTimeValue(double timeValue) const override; |
| 138 | 138 |
| 139 unsigned decodedFrameCount() const override; | 139 unsigned decodedFrameCount() const override; |
| 140 unsigned droppedFrameCount() const override; | 140 unsigned droppedFrameCount() const override; |
| 141 size_t audioDecodedByteCount() const override; | 141 size_t audioDecodedByteCount() const override; |
| 142 size_t videoDecodedByteCount() const override; | 142 size_t videoDecodedByteCount() const override; |
| 143 | 143 |
| 144 // WebMediaPlayerDelegate::Observer implementation. | 144 // WebMediaPlayerDelegate::Observer implementation. |
| 145 void OnHidden() override; | 145 void OnFrameHidden() override; |
| 146 void OnShown() override; | 146 void OnFrameClosed() override; |
| 147 bool OnSuspendRequested(bool must_suspend) override; | 147 void OnFrameShown() override; |
| 148 bool OnIdleTimeout() override; |
| 148 void OnPlay() override; | 149 void OnPlay() override; |
| 149 void OnPause() override; | 150 void OnPause() override; |
| 150 void OnVolumeMultiplierUpdate(double multiplier) override; | 151 void OnVolumeMultiplierUpdate(double multiplier) override; |
| 151 | 152 |
| 152 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, | 153 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, |
| 153 unsigned int texture, | 154 unsigned int texture, |
| 154 unsigned int internal_format, | 155 unsigned int internal_format, |
| 155 unsigned int type, | 156 unsigned int type, |
| 156 bool premultiply_alpha, | 157 bool premultiply_alpha, |
| 157 bool flip_y) override; | 158 bool flip_y) override; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // True if playback should be started upon the next call to OnShown(). Only | 253 // True if playback should be started upon the next call to OnShown(). Only |
| 253 // used on Android. | 254 // used on Android. |
| 254 bool should_play_upon_shown_; | 255 bool should_play_upon_shown_; |
| 255 | 256 |
| 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 257 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace content | 260 } // namespace content |
| 260 | 261 |
| 261 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 262 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |