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

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

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix typo Created 7 years 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ScriptExecutionContext; 44 class ScriptExecutionContext;
45 45
46 class MediaController : public RefCountedGarbageCollected<MediaController>, publ ic MediaControllerInterface, public EventTarget { 46 class MediaController : public RefCountedGarbageCollected<MediaController>, publ ic MediaControllerInterface, public EventTarget {
47 DECLARE_GC_INFO 47 DECLARE_GC_INFO
48 public: 48 public:
49 static PassRefPtr<MediaController> create(ScriptExecutionContext*); 49 static PassRefPtr<MediaController> create(ScriptExecutionContext*);
50 virtual ~MediaController(); 50 virtual ~MediaController();
51 51
52 virtual void trace(Visitor*) { } 52 virtual void trace(Visitor*) { }
53 53
54 virtual void visitWith(Visitor* visitor) const OVERRIDE 54 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE
55 { 55 {
56 visitor->visit(this); 56 visitor->mark(this);
57 } 57 }
58 58
59 void addMediaElement(HTMLMediaElement*); 59 void addMediaElement(HTMLMediaElement*);
60 void removeMediaElement(HTMLMediaElement*); 60 void removeMediaElement(HTMLMediaElement*);
61 bool containsMediaElement(HTMLMediaElement*) const; 61 bool containsMediaElement(HTMLMediaElement*) const;
62 62
63 const String& mediaGroup() const { return m_mediaGroup; } 63 const String& mediaGroup() const { return m_mediaGroup; }
64 64
65 virtual PassRefPtr<TimeRanges> buffered() const; 65 virtual PassRefPtr<TimeRanges> buffered() const;
66 virtual PassRefPtr<TimeRanges> seekable() const; 66 virtual PassRefPtr<TimeRanges> seekable() const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // ScriptExecutionContext, because HTMLMediaElement is an ActiveDOMObject. 167 // ScriptExecutionContext, because HTMLMediaElement is an ActiveDOMObject.
168 // Hence MediaController can outlive ScriptExecutionContext. 168 // Hence MediaController can outlive ScriptExecutionContext.
169 ScriptExecutionContext* m_scriptExecutionContext; 169 ScriptExecutionContext* m_scriptExecutionContext;
170 Timer<MediaController> m_timeupdateTimer; 170 Timer<MediaController> m_timeupdateTimer;
171 double m_previousTimeupdateTime; 171 double m_previousTimeupdateTime;
172 }; 172 };
173 173
174 } // namespace WebCore 174 } // namespace WebCore
175 175
176 #endif 176 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698