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

Side by Side Diff: Source/core/html/track/TextTrackCue.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2012, 2013 Apple Inc. All rights 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class DocumentFragment; 42 class DocumentFragment;
43 class ExceptionState; 43 class ExceptionState;
44 class ScriptExecutionContext; 44 class ScriptExecutionContext;
45 class TextTrack; 45 class TextTrack;
46 class TextTrackCue; 46 class TextTrackCue;
47 47
48 // ---------------------------- 48 // ----------------------------
49 49
50 class TextTrackCueBox : public HTMLDivElement { 50 class TextTrackCueBox : public HTMLDivElement {
51 public: 51 public:
52 static PassRefPtr<TextTrackCueBox> create(Document* document, TextTrackCue* cue) 52 static PassRefPtr<TextTrackCueBox> create(Document& document, TextTrackCue* cue)
53 { 53 {
54 return adoptRef(new TextTrackCueBox(document, cue)); 54 return adoptRef(new TextTrackCueBox(document, cue));
55 } 55 }
56 56
57 TextTrackCue* getCue() const; 57 TextTrackCue* getCue() const;
58 virtual void applyCSSProperties(const IntSize& videoSize); 58 virtual void applyCSSProperties(const IntSize& videoSize);
59 59
60 static const AtomicString& textTrackCueBoxShadowPseudoId(); 60 static const AtomicString& textTrackCueBoxShadowPseudoId();
61 61
62 protected: 62 protected:
63 TextTrackCueBox(Document*, TextTrackCue*); 63 TextTrackCueBox(Document&, TextTrackCue*);
64 64
65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
66 66
67 TextTrackCue* m_cue; 67 TextTrackCue* m_cue;
68 }; 68 };
69 69
70 // ---------------------------- 70 // ----------------------------
71 71
72 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu blic EventTarget { 72 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu blic EventTarget {
73 public: 73 public:
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 std::pair<float, float> m_displayPosition; 274 std::pair<float, float> m_displayPosition;
275 #if ENABLE(WEBVTT_REGIONS) 275 #if ENABLE(WEBVTT_REGIONS)
276 String m_regionId; 276 String m_regionId;
277 #endif 277 #endif
278 }; 278 };
279 279
280 } // namespace WebCore 280 } // namespace WebCore
281 281
282 #endif 282 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/TextControlInnerElements.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698