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

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

Issue 240153003: Remove the HTMLSourceElement.media IDL attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test Created 6 years, 8 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/frame/UseCounter.cpp ('k') | Source/core/html/HTMLSourceElement.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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 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 17 matching lines...) Expand all
28 28
29 #include "core/html/HTMLElement.h" 29 #include "core/html/HTMLElement.h"
30 #include "platform/Timer.h" 30 #include "platform/Timer.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class HTMLSourceElement FINAL : public HTMLElement { 34 class HTMLSourceElement FINAL : public HTMLElement {
35 public: 35 public:
36 static PassRefPtr<HTMLSourceElement> create(Document&); 36 static PassRefPtr<HTMLSourceElement> create(Document&);
37 37
38 const AtomicString& media() const;
39 const AtomicString& type() const; 38 const AtomicString& type() const;
40 void setSrc(const String&); 39 void setSrc(const String&);
41 void setMedia(const AtomicString&);
42 void setType(const AtomicString&); 40 void setType(const AtomicString&);
43 41
44 void scheduleErrorEvent(); 42 void scheduleErrorEvent();
45 void cancelPendingErrorEvent(); 43 void cancelPendingErrorEvent();
46 44
47 private: 45 private:
48 explicit HTMLSourceElement(Document&); 46 explicit HTMLSourceElement(Document&);
49 47
50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 48 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
51 virtual void removedFrom(ContainerNode*) OVERRIDE; 49 virtual void removedFrom(ContainerNode*) OVERRIDE;
52 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 50 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
53 51
54 void errorEventTimerFired(Timer<HTMLSourceElement>*); 52 void errorEventTimerFired(Timer<HTMLSourceElement>*);
55 53
56 Timer<HTMLSourceElement> m_errorEventTimer; 54 Timer<HTMLSourceElement> m_errorEventTimer;
57 }; 55 };
58 56
59 } // namespace WebCore 57 } // namespace WebCore
60 58
61 #endif 59 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/html/HTMLSourceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698