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

Side by Side Diff: sky/engine/core/html/HTMLMediaElement.h

Issue 701663002: Remove HTMLVideoElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/html/HTMLImageLoader.cpp ('k') | sky/engine/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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // 174 //
175 // Express that by having the MediaSource keep a weak reference 175 // Express that by having the MediaSource keep a weak reference
176 // to the media element and signal that it wants to be notified 176 // to the media element and signal that it wants to be notified
177 // of destruction if it survives a GC, but the media element 177 // of destruction if it survives a GC, but the media element
178 // doesn't. 178 // doesn't.
179 void setCloseMediaSourceWhenFinalizing(); 179 void setCloseMediaSourceWhenFinalizing();
180 #endif 180 #endif
181 181
182 // Predicates also used when dispatching wrapper creation (cf. [SpecialWrapF or] IDL attribute usage.) 182 // Predicates also used when dispatching wrapper creation (cf. [SpecialWrapF or] IDL attribute usage.)
183 virtual bool isHTMLAudioElement() const { return false; } 183 virtual bool isHTMLAudioElement() const { return false; }
184 virtual bool isHTMLVideoElement() const { return false; }
185 184
186 protected: 185 protected:
187 HTMLMediaElement(const QualifiedName&, Document&); 186 HTMLMediaElement(const QualifiedName&, Document&);
188 virtual ~HTMLMediaElement(); 187 virtual ~HTMLMediaElement();
189 188
190 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 189 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
191 virtual void finishParsingChildren() override final; 190 virtual void finishParsingChildren() override final;
192 virtual bool isURLAttribute(const Attribute&) const override; 191 virtual bool isURLAttribute(const Attribute&) const override;
193 virtual void attach(const AttachContext& = AttachContext()) override; 192 virtual void attach(const AttachContext& = AttachContext()) override;
194 193
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 struct ValueToString<double> { 427 struct ValueToString<double> {
429 static String string(const double value) 428 static String string(const double value)
430 { 429 {
431 return String::number(value); 430 return String::number(value);
432 } 431 }
433 }; 432 };
434 #endif 433 #endif
435 434
436 inline bool isHTMLMediaElement(const HTMLElement& element) 435 inline bool isHTMLMediaElement(const HTMLElement& element)
437 { 436 {
438 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 437 return isHTMLAudioElement(element);
439 } 438 }
440 439
441 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 440 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
442 441
443 } // namespace blink 442 } // namespace blink
444 443
445 #endif // HTMLMediaElement_h 444 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLImageLoader.cpp ('k') | sky/engine/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698