Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "WebMediaPlayerClientImpl.h" | 6 #include "WebMediaPlayerClientImpl.h" |
| 7 | 7 |
| 8 #if ENABLE(VIDEO) | 8 #if ENABLE(VIDEO) |
| 9 | 9 |
| 10 #include "TimeRanges.h" | 10 #include "TimeRanges.h" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 #include <wtf/Assertions.h> | 30 #include <wtf/Assertions.h> |
| 31 | 31 |
| 32 #if WEBKIT_USING_SKIA | 32 #if WEBKIT_USING_SKIA |
| 33 #include "PlatformContextSkia.h" | 33 #include "PlatformContextSkia.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 using namespace WebCore; | 36 using namespace WebCore; |
| 37 | 37 |
| 38 namespace WebKit { | 38 namespace WebKit { |
| 39 | 39 |
| 40 static bool s_isEnabled = false; | 40 static bool s_isEnabled = false; |
|
jorlow
2009/10/30 06:19:06
Change to isEnabled maybe?
darin (slow to review)
2009/10/30 06:38:25
Done.
| |
| 41 | 41 |
| 42 bool WebMediaPlayerClientImpl::isEnabled() | |
| 43 { | |
| 44 return s_isEnabled; | |
| 45 } | |
| 46 | |
| 42 void WebMediaPlayerClientImpl::setIsEnabled(bool isEnabled) | 47 void WebMediaPlayerClientImpl::setIsEnabled(bool isEnabled) |
| 43 { | 48 { |
| 44 s_isEnabled = isEnabled; | 49 s_isEnabled = isEnabled; |
| 45 } | 50 } |
| 46 | 51 |
| 47 void WebMediaPlayerClientImpl::registerSelf(MediaEngineRegistrar registrar) | 52 void WebMediaPlayerClientImpl::registerSelf(MediaEngineRegistrar registrar) |
| 48 { | 53 { |
| 49 if (s_isEnabled) { | 54 if (s_isEnabled) { |
| 50 registrar(WebMediaPlayerClientImpl::create, | 55 registrar(WebMediaPlayerClientImpl::create, |
| 51 WebMediaPlayerClientImpl::getSupportedTypes, | 56 WebMediaPlayerClientImpl::getSupportedTypes, |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 } | 376 } |
| 372 | 377 |
| 373 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() | 378 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() |
| 374 : m_mediaPlayer(0) | 379 : m_mediaPlayer(0) |
| 375 { | 380 { |
| 376 } | 381 } |
| 377 | 382 |
| 378 } // namespace WebKit | 383 } // namespace WebKit |
| 379 | 384 |
| 380 #endif // ENABLE(VIDEO) | 385 #endif // ENABLE(VIDEO) |
| OLD | NEW |