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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | « Source/core/html/HTMLMarqueeElement.cpp ('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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 const String& mediaGroup() const; 283 const String& mediaGroup() const;
284 void setMediaGroup(const String&); 284 void setMediaGroup(const String&);
285 285
286 MediaController* controller() const; 286 MediaController* controller() const;
287 void setController(PassRefPtr<MediaController>); 287 void setController(PassRefPtr<MediaController>);
288 288
289 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 289 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE;
290 290
291 protected: 291 protected:
292 HTMLMediaElement(const QualifiedName&, Document*, bool); 292 HTMLMediaElement(const QualifiedName&, Document&, bool);
293 virtual ~HTMLMediaElement(); 293 virtual ~HTMLMediaElement();
294 294
295 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 295 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
296 virtual void finishParsingChildren(); 296 virtual void finishParsingChildren();
297 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 297 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
298 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 298 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
299 299
300 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; 300 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
301 301
302 enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video }; 302 enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video };
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 608
609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node)
610 { 610 {
611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); 611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node));
612 return static_cast<HTMLMediaElement*>(node); 612 return static_cast<HTMLMediaElement*>(node);
613 } 613 }
614 614
615 } //namespace 615 } //namespace
616 616
617 #endif 617 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMarqueeElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698