| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/rendering/RenderTheme.h" | 49 #include "core/rendering/RenderTheme.h" |
| 50 #include "core/rendering/RenderVideo.h" | 50 #include "core/rendering/RenderVideo.h" |
| 51 | 51 |
| 52 namespace WebCore { | 52 namespace WebCore { |
| 53 | 53 |
| 54 using namespace HTMLNames; | 54 using namespace HTMLNames; |
| 55 | 55 |
| 56 static const AtomicString& getMediaControlCurrentTimeDisplayElementShadowPseudoI
d(); | 56 static const AtomicString& getMediaControlCurrentTimeDisplayElementShadowPseudoI
d(); |
| 57 static const AtomicString& getMediaControlTimeRemainingDisplayElementShadowPseud
oId(); | 57 static const AtomicString& getMediaControlTimeRemainingDisplayElementShadowPseud
oId(); |
| 58 | 58 |
| 59 static const char* textTracksOffAttrValue = "-1"; // This must match HTMLMediaEl
ement::textTracksOffIndex() | 59 static const char textTracksOffAttrValue[] = "-1"; // This must match HTMLMediaE
lement::textTracksOffIndex() |
| 60 | 60 |
| 61 MediaControlPanelElement::MediaControlPanelElement(Document& document) | 61 MediaControlPanelElement::MediaControlPanelElement(Document& document) |
| 62 : MediaControlDivElement(document, MediaControlsPanel) | 62 : MediaControlDivElement(document, MediaControlsPanel) |
| 63 , m_canBeDragged(false) | 63 , m_canBeDragged(false) |
| 64 , m_isBeingDragged(false) | 64 , m_isBeingDragged(false) |
| 65 , m_isDisplayed(false) | 65 , m_isDisplayed(false) |
| 66 , m_opaque(true) | 66 , m_opaque(true) |
| 67 , m_transitionTimer(this, &MediaControlPanelElement::transitionTimerFired) | 67 , m_transitionTimer(this, &MediaControlPanelElement::transitionTimerFired) |
| 68 { | 68 { |
| 69 } | 69 } |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 CueList activeCues = mediaElement->currentlyActiveCues(); | 799 CueList activeCues = mediaElement->currentlyActiveCues(); |
| 800 for (size_t i = 0; i < activeCues.size(); ++i) { | 800 for (size_t i = 0; i < activeCues.size(); ++i) { |
| 801 TextTrackCue* cue = activeCues[i].data(); | 801 TextTrackCue* cue = activeCues[i].data(); |
| 802 cue->videoSizeDidChange(m_videoDisplaySize.size()); | 802 cue->videoSizeDidChange(m_videoDisplaySize.size()); |
| 803 } | 803 } |
| 804 } | 804 } |
| 805 | 805 |
| 806 // ---------------------------- | 806 // ---------------------------- |
| 807 | 807 |
| 808 } // namespace WebCore | 808 } // namespace WebCore |
| OLD | NEW |