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

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 204803002: Make scrubbing a MediaControls-internal concept (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void durationChanged(double duration); 150 void durationChanged(double duration);
151 151
152 // controls 152 // controls
153 bool controls() const; 153 bool controls() const;
154 void setControls(bool); 154 void setControls(bool);
155 virtual double volume() const OVERRIDE FINAL; 155 virtual double volume() const OVERRIDE FINAL;
156 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL; 156 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL;
157 virtual bool muted() const OVERRIDE FINAL; 157 virtual bool muted() const OVERRIDE FINAL;
158 virtual void setMuted(bool) OVERRIDE FINAL; 158 virtual void setMuted(bool) OVERRIDE FINAL;
159 159
160 virtual void beginScrubbing() OVERRIDE FINAL;
161 virtual void endScrubbing() OVERRIDE FINAL;
162
163 virtual bool canPlay() const OVERRIDE FINAL; 160 virtual bool canPlay() const OVERRIDE FINAL;
164 161
165 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr ing& label, const AtomicString& language, ExceptionState&); 162 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr ing& label, const AtomicString& language, ExceptionState&);
166 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e mptyAtom, exceptionState); } 163 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e mptyAtom, exceptionState); }
167 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState& exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat e); } 164 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState& exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat e); }
168 165
169 TextTrackList* textTracks(); 166 TextTrackList* textTracks();
170 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } 167 CueList currentlyActiveCues() const { return m_currentlyActiveCues; }
171 168
172 void addTextTrack(TextTrack*); 169 void addTextTrack(TextTrack*);
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 inline bool isHTMLMediaElement(const HTMLElement& element) 545 inline bool isHTMLMediaElement(const HTMLElement& element)
549 { 546 {
550 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 547 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
551 } 548 }
552 549
553 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 550 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
554 551
555 } //namespace 552 } //namespace
556 553
557 #endif 554 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698