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

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

Issue 261783009: Use [TypeChecking=Unrestricted] for HTMLMediaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « LayoutTests/media/video-volume-expected.txt ('k') | Source/core/html/HTMLMediaElement.cpp » ('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) 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA }; 122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA };
123 ReadyState readyState() const; 123 ReadyState readyState() const;
124 bool seeking() const; 124 bool seeking() const;
125 125
126 // playback state 126 // playback state
127 double currentTime() const; 127 double currentTime() const;
128 void setCurrentTime(double, ExceptionState&); 128 void setCurrentTime(double, ExceptionState&);
129 double duration() const; 129 double duration() const;
130 bool paused() const; 130 bool paused() const;
131 double defaultPlaybackRate() const; 131 double defaultPlaybackRate() const;
132 void setDefaultPlaybackRate(double, ExceptionState&); 132 void setDefaultPlaybackRate(double);
133 double playbackRate() const; 133 double playbackRate() const;
134 void setPlaybackRate(double, ExceptionState&); 134 void setPlaybackRate(double);
135 void updatePlaybackRate(); 135 void updatePlaybackRate();
136 PassRefPtr<TimeRanges> played(); 136 PassRefPtr<TimeRanges> played();
137 PassRefPtr<TimeRanges> seekable() const; 137 PassRefPtr<TimeRanges> seekable() const;
138 bool ended() const; 138 bool ended() const;
139 bool autoplay() const; 139 bool autoplay() const;
140 bool loop() const; 140 bool loop() const;
141 void setLoop(bool b); 141 void setLoop(bool b);
142 void play(); 142 void play();
143 void pause(); 143 void pause();
144 144
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 inline bool isHTMLMediaElement(const HTMLElement& element) 551 inline bool isHTMLMediaElement(const HTMLElement& element)
552 { 552 {
553 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 553 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
554 } 554 }
555 555
556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
557 557
558 } //namespace 558 } //namespace
559 559
560 #endif 560 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/video-volume-expected.txt ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698