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

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

Issue 14449003: Picture element initial implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@picture_after_rebase
Patch Set: Created 7 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
« no previous file with comments | « Source/core/html/HTMLPictureElement.idl ('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 18 matching lines...) Expand all
29 #if ENABLE(VIDEO) 29 #if ENABLE(VIDEO)
30 #include "HTMLElement.h" 30 #include "HTMLElement.h"
31 #include "Timer.h" 31 #include "Timer.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class HTMLSourceElement : public HTMLElement { 35 class HTMLSourceElement : public HTMLElement {
36 public: 36 public:
37 static PassRefPtr<HTMLSourceElement> create(const QualifiedName&, Document*) ; 37 static PassRefPtr<HTMLSourceElement> create(const QualifiedName&, Document*) ;
38 38
39 String src() const;
39 String media() const; 40 String media() const;
40 String type() const; 41 String type() const;
41 void setSrc(const String&); 42 void setSrc(const String&);
42 void setMedia(const String&); 43 void setMedia(const String&);
43 void setType(const String&); 44 void setType(const String&);
44 45
45 void scheduleErrorEvent(); 46 void scheduleErrorEvent();
46 void cancelPendingErrorEvent(); 47 void cancelPendingErrorEvent();
47 48
48 private: 49 private:
49 HTMLSourceElement(const QualifiedName&, Document*); 50 HTMLSourceElement(const QualifiedName&, Document*);
50 51
51 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 52 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
52 virtual void removedFrom(ContainerNode*) OVERRIDE; 53 virtual void removedFrom(ContainerNode*) OVERRIDE;
53 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 54 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
54 55
55 void errorEventTimerFired(Timer<HTMLSourceElement>*); 56 void errorEventTimerFired(Timer<HTMLSourceElement>*);
56 57
57 Timer<HTMLSourceElement> m_errorEventTimer; 58 Timer<HTMLSourceElement> m_errorEventTimer;
58 }; 59 };
59 60
60 } //namespace 61 } //namespace
61 62
62 #endif 63 #endif
63 #endif 64 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPictureElement.idl ('k') | Source/core/html/HTMLSourceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698