| 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 28 matching lines...) Expand all Loading... |
| 39 #include <wtf/OwnPtr.h> | 39 #include <wtf/OwnPtr.h> |
| 40 | 40 |
| 41 namespace WebKit { | 41 namespace WebKit { |
| 42 class WebMediaPlayer; | 42 class WebMediaPlayer; |
| 43 | 43 |
| 44 // This class serves as a bridge between WebCore::MediaPlayer and | 44 // This class serves as a bridge between WebCore::MediaPlayer and |
| 45 // WebKit::WebMediaPlayer. | 45 // WebKit::WebMediaPlayer. |
| 46 class WebMediaPlayerClientImpl : public WebMediaPlayerClient | 46 class WebMediaPlayerClientImpl : public WebMediaPlayerClient |
| 47 , public WebCore::MediaPlayerPrivateInterface { | 47 , public WebCore::MediaPlayerPrivateInterface { |
| 48 public: | 48 public: |
| 49 static bool isEnabled(); |
| 49 static void setIsEnabled(bool); | 50 static void setIsEnabled(bool); |
| 50 static void registerSelf(WebCore::MediaEngineRegistrar); | 51 static void registerSelf(WebCore::MediaEngineRegistrar); |
| 51 | 52 |
| 52 // WebMediaPlayerClient methods: | 53 // WebMediaPlayerClient methods: |
| 53 virtual void networkStateChanged(); | 54 virtual void networkStateChanged(); |
| 54 virtual void readyStateChanged(); | 55 virtual void readyStateChanged(); |
| 55 virtual void volumeChanged(); | 56 virtual void volumeChanged(); |
| 56 virtual void timeChanged(); | 57 virtual void timeChanged(); |
| 57 virtual void repaint(); | 58 virtual void repaint(); |
| 58 virtual void durationChanged(); | 59 virtual void durationChanged(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 WebCore::MediaPlayer* m_mediaPlayer; | 105 WebCore::MediaPlayer* m_mediaPlayer; |
| 105 OwnPtr<WebMediaPlayer> m_webMediaPlayer; | 106 OwnPtr<WebMediaPlayer> m_webMediaPlayer; |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace WebKit | 109 } // namespace WebKit |
| 109 | 110 |
| 110 #endif | 111 #endif |
| 111 | 112 |
| 112 #endif | 113 #endif |
| OLD | NEW |