| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 virtual float maxTimeSeekable() const { return 0; } | 87 virtual float maxTimeSeekable() const { return 0; } |
| 88 virtual float maxTimeBuffered() const { return 0; } | 88 virtual float maxTimeBuffered() const { return 0; } |
| 89 | 89 |
| 90 virtual int dataRate() const { return 0; } | 90 virtual int dataRate() const { return 0; } |
| 91 | 91 |
| 92 virtual bool totalBytesKnown() const { return false; } | 92 virtual bool totalBytesKnown() const { return false; } |
| 93 virtual unsigned totalBytes() const { return 0; } | 93 virtual unsigned totalBytes() const { return 0; } |
| 94 virtual unsigned bytesLoaded() const { return 0; } | 94 virtual unsigned bytesLoaded() const { return 0; } |
| 95 | 95 |
| 96 virtual void setRect(const IntRect&) { } | 96 virtual void setSize(const IntSize&) { } |
| 97 | 97 |
| 98 virtual void paint(GraphicsContext*, const IntRect&) { } | 98 virtual void paint(GraphicsContext*, const IntRect&) { } |
| 99 | 99 |
| 100 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) | 100 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) |
| 101 virtual void setPoster(const String& /*url*/) { } | 101 virtual void setPoster(const String& /*url*/) { } |
| 102 virtual void deliverNotification(MediaPlayerProxyNotificationType) { } | 102 virtual void deliverNotification(MediaPlayerProxyNotificationType) { } |
| 103 virtual void setMediaPlayerProxy(WebMediaPlayerProxy*) { } | 103 virtual void setMediaPlayerProxy(WebMediaPlayerProxy*) { } |
| 104 #endif | 104 #endif |
| 105 }; | 105 }; |
| 106 | 106 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 bool MediaPlayer::totalBytesKnown() | 350 bool MediaPlayer::totalBytesKnown() |
| 351 { | 351 { |
| 352 return m_private->totalBytesKnown(); | 352 return m_private->totalBytesKnown(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 unsigned MediaPlayer::totalBytes() | 355 unsigned MediaPlayer::totalBytes() |
| 356 { | 356 { |
| 357 return m_private->totalBytes(); | 357 return m_private->totalBytes(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void MediaPlayer::setRect(const IntRect& r) | 360 void MediaPlayer::setSize(const IntSize& size) |
| 361 { | 361 { |
| 362 m_rect = r; | 362 m_size = size; |
| 363 m_private->setRect(r); | 363 m_private->setSize(size); |
| 364 } | 364 } |
| 365 | 365 |
| 366 bool MediaPlayer::visible() const | 366 bool MediaPlayer::visible() const |
| 367 { | 367 { |
| 368 return m_visible; | 368 return m_visible; |
| 369 } | 369 } |
| 370 | 370 |
| 371 void MediaPlayer::setVisible(bool b) | 371 void MediaPlayer::setVisible(bool b) |
| 372 { | 372 { |
| 373 m_visible = b; | 373 m_visible = b; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 } | 445 } |
| 446 | 446 |
| 447 void MediaPlayer::repaint() | 447 void MediaPlayer::repaint() |
| 448 { | 448 { |
| 449 if (m_mediaPlayerClient) | 449 if (m_mediaPlayerClient) |
| 450 m_mediaPlayerClient->mediaPlayerRepaint(this); | 450 m_mediaPlayerClient->mediaPlayerRepaint(this); |
| 451 } | 451 } |
| 452 | 452 |
| 453 } | 453 } |
| 454 #endif | 454 #endif |
| OLD | NEW |