Chromium Code Reviews| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 virtual void setPoster(const WebURL& poster) {} | 219 virtual void setPoster(const WebURL& poster) {} |
| 220 | 220 |
| 221 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When | 221 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When |
| 222 // this is true, the video layer will be removed from the layer tree when | 222 // this is true, the video layer will be removed from the layer tree when |
| 223 // entering fullscreen, and the WebMediaPlayer is responsible for displaying | 223 // entering fullscreen, and the WebMediaPlayer is responsible for displaying |
| 224 // the video in enteredFullscreen(). | 224 // the video in enteredFullscreen(). |
| 225 virtual bool supportsOverlayFullscreenVideo() { return false; } | 225 virtual bool supportsOverlayFullscreenVideo() { return false; } |
| 226 // Inform WebMediaPlayer when the element has entered/exited fullscreen. | 226 // Inform WebMediaPlayer when the element has entered/exited fullscreen. |
| 227 virtual void enteredFullscreen() {} | 227 virtual void enteredFullscreen() {} |
| 228 virtual void exitedFullscreen() {} | 228 virtual void exitedFullscreen() {} |
| 229 // Inform WebMediaPlayer when the video/viewport ratio changed. | |
|
xhwang
2016/11/14 18:32:03
Please provide more details on what this ratio is.
xjz
2016/11/15 23:03:39
Done.
| |
| 230 virtual void videoViewportRatioChanged(float ratio) {} | |
| 229 | 231 |
| 230 virtual void enabledAudioTracksChanged( | 232 virtual void enabledAudioTracksChanged( |
| 231 const WebVector<TrackId>& enabledTrackIds) {} | 233 const WebVector<TrackId>& enabledTrackIds) {} |
| 232 // |selectedTrackId| is null if no track is selected. | 234 // |selectedTrackId| is null if no track is selected. |
| 233 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} | 235 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 } // namespace blink | 238 } // namespace blink |
| 237 | 239 |
| 238 #endif | 240 #endif |
| OLD | NEW |