| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/frame/UseCounter.h" | 41 #include "core/frame/UseCounter.h" |
| 42 #include "core/html/HTMLAnchorElement.h" | 42 #include "core/html/HTMLAnchorElement.h" |
| 43 #include "core/html/HTMLLabelElement.h" | 43 #include "core/html/HTMLLabelElement.h" |
| 44 #include "core/html/HTMLSpanElement.h" | 44 #include "core/html/HTMLSpanElement.h" |
| 45 #include "core/html/HTMLVideoElement.h" | 45 #include "core/html/HTMLVideoElement.h" |
| 46 #include "core/html/TimeRanges.h" | 46 #include "core/html/TimeRanges.h" |
| 47 #include "core/html/media/HTMLMediaElementControlsList.h" | 47 #include "core/html/media/HTMLMediaElementControlsList.h" |
| 48 #include "core/html/media/HTMLMediaSource.h" | 48 #include "core/html/media/HTMLMediaSource.h" |
| 49 #include "core/html/shadow/MediaControls.h" | 49 #include "core/html/media/MediaControls.h" |
| 50 #include "core/html/track/TextTrackList.h" | 50 #include "core/html/track/TextTrackList.h" |
| 51 #include "core/input/EventHandler.h" | 51 #include "core/input/EventHandler.h" |
| 52 #include "core/layout/api/LayoutSliderItem.h" | 52 #include "core/layout/api/LayoutSliderItem.h" |
| 53 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
| 54 #include "platform/EventDispatchForbiddenScope.h" | 54 #include "platform/EventDispatchForbiddenScope.h" |
| 55 #include "platform/Histogram.h" | 55 #include "platform/Histogram.h" |
| 56 #include "platform/RuntimeEnabledFeatures.h" | 56 #include "platform/RuntimeEnabledFeatures.h" |
| 57 #include "platform/text/PlatformLocale.h" | 57 #include "platform/text/PlatformLocale.h" |
| 58 #include "public/platform/Platform.h" | 58 #include "public/platform/Platform.h" |
| 59 #include "public/platform/UserMetricsAction.h" | 59 #include "public/platform/UserMetricsAction.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // anonymous namespace | 134 } // anonymous namespace |
| 135 | 135 |
| 136 MediaControlPanelElement::MediaControlPanelElement(MediaControls& mediaControls) | 136 MediaControlPanelElement::MediaControlPanelElement(MediaControls& mediaControls) |
| 137 : MediaControlDivElement(mediaControls, MediaControlsPanel), | 137 : MediaControlDivElement(mediaControls, MediaControlsPanel), |
| 138 m_isDisplayed(false), | 138 m_isDisplayed(false), |
| 139 m_opaque(true), | 139 m_opaque(true), |
| 140 m_transitionTimer(TaskRunnerHelper::get(TaskType::UnspecedTimer, | 140 m_transitionTimer(TaskRunnerHelper::get(TaskType::UnspecedTimer, |
| 141 &mediaControls.document()), | 141 &mediaControls.ownerDocument()), |
| 142 this, | 142 this, |
| 143 &MediaControlPanelElement::transitionTimerFired) {} | 143 &MediaControlPanelElement::transitionTimerFired) {} |
| 144 | 144 |
| 145 MediaControlPanelElement* MediaControlPanelElement::create( | 145 MediaControlPanelElement* MediaControlPanelElement::create( |
| 146 MediaControls& mediaControls) { | 146 MediaControls& mediaControls) { |
| 147 MediaControlPanelElement* panel = new MediaControlPanelElement(mediaControls); | 147 MediaControlPanelElement* panel = new MediaControlPanelElement(mediaControls); |
| 148 panel->setShadowPseudoId(AtomicString("-webkit-media-controls-panel")); | 148 panel->setShadowPseudoId(AtomicString("-webkit-media-controls-panel")); |
| 149 return panel; | 149 return panel; |
| 150 } | 150 } |
| 151 | 151 |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 MediaControlCurrentTimeDisplayElement* | 1101 MediaControlCurrentTimeDisplayElement* |
| 1102 MediaControlCurrentTimeDisplayElement::create(MediaControls& mediaControls) { | 1102 MediaControlCurrentTimeDisplayElement::create(MediaControls& mediaControls) { |
| 1103 MediaControlCurrentTimeDisplayElement* element = | 1103 MediaControlCurrentTimeDisplayElement* element = |
| 1104 new MediaControlCurrentTimeDisplayElement(mediaControls); | 1104 new MediaControlCurrentTimeDisplayElement(mediaControls); |
| 1105 element->setShadowPseudoId( | 1105 element->setShadowPseudoId( |
| 1106 AtomicString("-webkit-media-controls-current-time-display")); | 1106 AtomicString("-webkit-media-controls-current-time-display")); |
| 1107 return element; | 1107 return element; |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 } // namespace blink | 1110 } // namespace blink |
| OLD | NEW |