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

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

Issue 696913004: Remove HTMLAudioElement. (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/HTMLAudioElement.idl ('k') | sky/engine/core/html/HTMLMediaElement.idl » ('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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Oilpan: finalization of the media element is observable from its 172 // Oilpan: finalization of the media element is observable from its
173 // attached MediaSource; it entering a closed state. 173 // attached MediaSource; it entering a closed state.
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.)
183 virtual bool isHTMLAudioElement() const { return false; }
184
185 protected: 182 protected:
186 HTMLMediaElement(const QualifiedName&, Document&); 183 HTMLMediaElement(const QualifiedName&, Document&);
187 virtual ~HTMLMediaElement(); 184 virtual ~HTMLMediaElement();
188 185
189 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 186 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
190 virtual void finishParsingChildren() override final; 187 virtual void finishParsingChildren() override final;
191 virtual bool isURLAttribute(const Attribute&) const override; 188 virtual bool isURLAttribute(const Attribute&) const override;
192 virtual void attach(const AttachContext& = AttachContext()) override; 189 virtual void attach(const AttachContext& = AttachContext()) override;
193 190
194 virtual void didMoveToNewDocument(Document& oldDocument) override; 191 virtual void didMoveToNewDocument(Document& oldDocument) override;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Template specializations required by PodIntervalTree in debug mode. 422 // Template specializations required by PodIntervalTree in debug mode.
426 template <> 423 template <>
427 struct ValueToString<double> { 424 struct ValueToString<double> {
428 static String string(const double value) 425 static String string(const double value)
429 { 426 {
430 return String::number(value); 427 return String::number(value);
431 } 428 }
432 }; 429 };
433 #endif 430 #endif
434 431
432 // FIXME(sky): Remove this.
435 inline bool isHTMLMediaElement(const HTMLElement& element) 433 inline bool isHTMLMediaElement(const HTMLElement& element)
436 { 434 {
437 return isHTMLAudioElement(element); 435 return false;
438 } 436 }
439 437
440 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 438 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
441 439
442 } // namespace blink 440 } // namespace blink
443 441
444 #endif // HTMLMediaElement_h 442 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLAudioElement.idl ('k') | sky/engine/core/html/HTMLMediaElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698