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

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

Issue 187423004: Remove unused MediaControls* in MediaControlToggleClosedCaptionsButtonElement (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.cpp ('k') | no next file » | 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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2011, 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 panel->appendChild(muteButton.release(), exceptionState); 113 panel->appendChild(muteButton.release(), exceptionState);
114 if (exceptionState.hadException()) 114 if (exceptionState.hadException())
115 return false; 115 return false;
116 116
117 RefPtr<MediaControlVolumeSliderElement> slider = MediaControlVolumeSliderEle ment::create(document); 117 RefPtr<MediaControlVolumeSliderElement> slider = MediaControlVolumeSliderEle ment::create(document);
118 m_volumeSlider = slider.get(); 118 m_volumeSlider = slider.get();
119 panel->appendChild(slider.release(), exceptionState); 119 panel->appendChild(slider.release(), exceptionState);
120 if (exceptionState.hadException()) 120 if (exceptionState.hadException())
121 return false; 121 return false;
122 122
123 RefPtr<MediaControlToggleClosedCaptionsButtonElement> toggleClosedCaptionsBu tton = MediaControlToggleClosedCaptionsButtonElement::create(document, this); 123 RefPtr<MediaControlToggleClosedCaptionsButtonElement> toggleClosedCaptionsBu tton = MediaControlToggleClosedCaptionsButtonElement::create(document);
124 m_toggleClosedCaptionsButton = toggleClosedCaptionsButton.get(); 124 m_toggleClosedCaptionsButton = toggleClosedCaptionsButton.get();
125 panel->appendChild(toggleClosedCaptionsButton.release(), exceptionState); 125 panel->appendChild(toggleClosedCaptionsButton.release(), exceptionState);
126 if (exceptionState.hadException()) 126 if (exceptionState.hadException())
127 return false; 127 return false;
128 128
129 RefPtr<MediaControlFullscreenButtonElement> fullscreenButton = MediaControlF ullscreenButtonElement::create(document); 129 RefPtr<MediaControlFullscreenButtonElement> fullscreenButton = MediaControlF ullscreenButtonElement::create(document);
130 m_fullScreenButton = fullscreenButton.get(); 130 m_fullScreenButton = fullscreenButton.get();
131 panel->appendChild(fullscreenButton.release(), exceptionState); 131 panel->appendChild(fullscreenButton.release(), exceptionState);
132 if (exceptionState.hadException()) 132 if (exceptionState.hadException())
133 return false; 133 return false;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 m_textDisplayContainer->updateDisplay(); 454 m_textDisplayContainer->updateDisplay();
455 } 455 }
456 456
457 void MediaControls::insertTextTrackContainer(PassRefPtr<MediaControlTextTrackCon tainerElement> textTrackContainer) 457 void MediaControls::insertTextTrackContainer(PassRefPtr<MediaControlTextTrackCon tainerElement> textTrackContainer)
458 { 458 {
459 // Insert it before the first controller element so it always displays behin d the controls. 459 // Insert it before the first controller element so it always displays behin d the controls.
460 insertBefore(textTrackContainer, m_enclosure); 460 insertBefore(textTrackContainer, m_enclosure);
461 } 461 }
462 462
463 } 463 }
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698