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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 const WebRemotePlaybackClient* remotePlaybackClient() const { 314 const WebRemotePlaybackClient* remotePlaybackClient() const {
315 return m_remotePlaybackClient; 315 return m_remotePlaybackClient;
316 } 316 }
317 317
318 protected: 318 protected:
319 HTMLMediaElement(const QualifiedName&, Document&); 319 HTMLMediaElement(const QualifiedName&, Document&);
320 ~HTMLMediaElement() override; 320 ~HTMLMediaElement() override;
321 void dispose(); 321 void dispose();
322 322
323 void parseAttribute(const QualifiedName&, 323 void parseAttribute(const AttributeModificationParams&) override;
324 const AtomicString&,
325 const AtomicString&) override;
326 void finishParsingChildren() final; 324 void finishParsingChildren() final;
327 bool isURLAttribute(const Attribute&) const override; 325 bool isURLAttribute(const Attribute&) const override;
328 void attachLayoutTree(const AttachContext& = AttachContext()) override; 326 void attachLayoutTree(const AttachContext& = AttachContext()) override;
329 327
330 void didMoveToNewDocument(Document& oldDocument) override; 328 void didMoveToNewDocument(Document& oldDocument) override;
331 virtual KURL posterImageURL() const { return KURL(); } 329 virtual KURL posterImageURL() const { return KURL(); }
332 330
333 enum DisplayMode { Unknown, Poster, Video }; 331 enum DisplayMode { Unknown, Poster, Video };
334 DisplayMode getDisplayMode() const { return m_displayMode; } 332 DisplayMode getDisplayMode() const { return m_displayMode; }
335 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } 333 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 752
755 inline bool isHTMLMediaElement(const HTMLElement& element) { 753 inline bool isHTMLMediaElement(const HTMLElement& element) {
756 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 754 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
757 } 755 }
758 756
759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
760 758
761 } // namespace blink 759 } // namespace blink
762 760
763 #endif // HTMLMediaElement_h 761 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMapElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698