Chromium Code Reviews| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 } | 277 } |
| 278 | 278 |
| 279 const AtomicString& MediaControlOverlayEnclosureElement::shadowPseudoId() const | 279 const AtomicString& MediaControlOverlayEnclosureElement::shadowPseudoId() const |
| 280 { | 280 { |
| 281 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-overlay-enclo sure", AtomicString::ConstructFromLiteral)); | 281 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-overlay-enclo sure", AtomicString::ConstructFromLiteral)); |
| 282 return id; | 282 return id; |
| 283 } | 283 } |
| 284 | 284 |
| 285 // ---------------------------- | 285 // ---------------------------- |
| 286 | 286 |
| 287 MediaControlPanelMuteButtonElement::MediaControlPanelMuteButtonElement(Document& document, MediaControls* controls) | 287 MediaControlPanelMuteButtonElement::MediaControlPanelMuteButtonElement(Document& document, MediaControls* controls) |
|
acolwell GONE FROM CHROMIUM
2014/03/04 02:06:58
Do we even need this class anymore? It appears tha
philipj_slow
2014/03/04 08:10:16
Sorry, I noticed the same thing and should have po
| |
| 288 : MediaControlMuteButtonElement(document, MediaMuteButton) | 288 : MediaControlMuteButtonElement(document, MediaMuteButton) |
| 289 , m_controls(controls) | |
| 290 { | 289 { |
| 291 } | 290 } |
| 292 | 291 |
| 293 PassRefPtr<MediaControlPanelMuteButtonElement> MediaControlPanelMuteButtonElemen t::create(Document& document, MediaControls* controls) | 292 PassRefPtr<MediaControlPanelMuteButtonElement> MediaControlPanelMuteButtonElemen t::create(Document& document, MediaControls* controls) |
| 294 { | 293 { |
| 295 ASSERT(controls); | 294 ASSERT(controls); |
| 296 | 295 |
| 297 RefPtr<MediaControlPanelMuteButtonElement> button = adoptRef(new MediaContro lPanelMuteButtonElement(document, controls)); | 296 RefPtr<MediaControlPanelMuteButtonElement> button = adoptRef(new MediaContro lPanelMuteButtonElement(document, controls)); |
| 298 button->ensureUserAgentShadowRoot(); | 297 button->ensureUserAgentShadowRoot(); |
| 299 button->setType("button"); | 298 button->setType("button"); |
| 300 return button.release(); | 299 return button.release(); |
| 301 } | 300 } |
| 302 | 301 |
| 303 void MediaControlPanelMuteButtonElement::defaultEventHandler(Event* event) | |
| 304 { | |
| 305 if (event->type() == EventTypeNames::mouseover) | |
|
acolwell GONE FROM CHROMIUM
2014/03/04 23:23:17
We don't need this now because the slider is alway
philipj_slow
2014/03/05 07:22:16
showVolumeSlider() simply shows the slider if (m_m
| |
| 306 m_controls->showVolumeSlider(); | |
| 307 | |
| 308 MediaControlMuteButtonElement::defaultEventHandler(event); | |
| 309 } | |
| 310 | |
| 311 const AtomicString& MediaControlPanelMuteButtonElement::shadowPseudoId() const | 302 const AtomicString& MediaControlPanelMuteButtonElement::shadowPseudoId() const |
| 312 { | 303 { |
| 313 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-mute-button", AtomicString::ConstructFromLiteral)); | 304 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-mute-button", AtomicString::ConstructFromLiteral)); |
| 314 return id; | 305 return id; |
| 315 } | 306 } |
| 316 | 307 |
| 317 // ---------------------------- | 308 // ---------------------------- |
| 318 | 309 |
| 319 MediaControlPlayButtonElement::MediaControlPlayButtonElement(Document& document) | 310 MediaControlPlayButtonElement::MediaControlPlayButtonElement(Document& document) |
| 320 : MediaControlInputElement(document, MediaPlayButton) | 311 : MediaControlInputElement(document, MediaPlayButton) |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 746 float fontSize = smallestDimension * 0.05f; | 737 float fontSize = smallestDimension * 0.05f; |
| 747 if (fontSize != m_fontSize) { | 738 if (fontSize != m_fontSize) { |
| 748 m_fontSize = fontSize; | 739 m_fontSize = fontSize; |
| 749 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue: :CSS_PX); | 740 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue: :CSS_PX); |
| 750 } | 741 } |
| 751 } | 742 } |
| 752 | 743 |
| 753 // ---------------------------- | 744 // ---------------------------- |
| 754 | 745 |
| 755 } // namespace WebCore | 746 } // namespace WebCore |
| OLD | NEW |