Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: Source/core/html/shadow/MediaControlElements.cpp

Issue 176883020: Remove MediaControls::showVolumeSlider() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.h ('k') | Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.h ('k') | Source/core/html/shadow/MediaControls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698