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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h

Issue 2783593002: Redraw media volume slider when it is moving (Closed)
Patch Set: Test for volume slider invalidation on input while dragging Created 3 years, 8 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
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 12 matching lines...) Expand all
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef MediaControlElements_h 30 #ifndef MediaControlElements_h
31 #define MediaControlElements_h 31 #define MediaControlElements_h
32 32
33 #include "core/CoreExport.h"
33 #include "core/html/shadow/MediaControlElementTypes.h" 34 #include "core/html/shadow/MediaControlElementTypes.h"
34 #include "public/platform/WebLocalizedString.h" 35 #include "public/platform/WebLocalizedString.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 class TextTrack; 39 class TextTrack;
39 40
40 // ---------------------------- 41 // ----------------------------
41 42
42 class MediaControlPanelElement final : public MediaControlDivElement { 43 class MediaControlPanelElement final : public MediaControlDivElement {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 }; 346 };
346 347
347 // ---------------------------- 348 // ----------------------------
348 349
349 class MediaControlVolumeSliderElement final : public MediaControlInputElement { 350 class MediaControlVolumeSliderElement final : public MediaControlInputElement {
350 public: 351 public:
351 static MediaControlVolumeSliderElement* create(MediaControls&); 352 static MediaControlVolumeSliderElement* create(MediaControls&);
352 353
353 bool willRespondToMouseMoveEvents() override; 354 bool willRespondToMouseMoveEvents() override;
354 bool willRespondToMouseClickEvents() override; 355 bool willRespondToMouseClickEvents() override;
355 void setVolume(double); 356 CORE_EXPORT void setVolume(double);
356 357
357 private: 358 private:
358 explicit MediaControlVolumeSliderElement(MediaControls&); 359 explicit MediaControlVolumeSliderElement(MediaControls&);
359 360
360 void defaultEventHandler(Event*) override; 361 void defaultEventHandler(Event*) override;
361 bool keepEventInNode(Event*) override; 362 bool keepEventInNode(Event*) override;
362 }; 363 };
363 364
364 // ---------------------------- 365 // ----------------------------
365 366
(...skipping 13 matching lines...) Expand all
379 public: 380 public:
380 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); 381 static MediaControlCurrentTimeDisplayElement* create(MediaControls&);
381 382
382 private: 383 private:
383 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); 384 explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
384 }; 385 };
385 386
386 } // namespace blink 387 } // namespace blink
387 388
388 #endif // MediaControlElements_h 389 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698