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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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/ImageData.cpp ('k') | Source/core/html/MediaError.h » ('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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 , m_muted(false) 55 , m_muted(false)
56 , m_readyState(HTMLMediaElement::HAVE_NOTHING) 56 , m_readyState(HTMLMediaElement::HAVE_NOTHING)
57 , m_playbackState(WAITING) 57 , m_playbackState(WAITING)
58 , m_pendingEventsQueue(GenericEventQueue::create(this)) 58 , m_pendingEventsQueue(GenericEventQueue::create(this))
59 , m_clearPositionTimer(this, &MediaController::clearPositionTimerFired) 59 , m_clearPositionTimer(this, &MediaController::clearPositionTimerFired)
60 , m_clock(Clock::create()) 60 , m_clock(Clock::create())
61 , m_executionContext(context) 61 , m_executionContext(context)
62 , m_timeupdateTimer(this, &MediaController::timeupdateTimerFired) 62 , m_timeupdateTimer(this, &MediaController::timeupdateTimerFired)
63 , m_previousTimeupdateTime(0) 63 , m_previousTimeupdateTime(0)
64 { 64 {
65 ScriptWrappable::init(this);
66 } 65 }
67 66
68 MediaController::~MediaController() 67 MediaController::~MediaController()
69 { 68 {
70 } 69 }
71 70
72 void MediaController::addMediaElement(HTMLMediaElement* element) 71 void MediaController::addMediaElement(HTMLMediaElement* element)
73 { 72 {
74 ASSERT(element); 73 ASSERT(element);
75 ASSERT(!m_mediaElements.contains(element)); 74 ASSERT(!m_mediaElements.contains(element));
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 { 617 {
619 #if ENABLE(OILPAN) 618 #if ENABLE(OILPAN)
620 visitor->trace(m_mediaElements); 619 visitor->trace(m_mediaElements);
621 visitor->trace(m_pendingEventsQueue); 620 visitor->trace(m_pendingEventsQueue);
622 visitor->trace(m_executionContext); 621 visitor->trace(m_executionContext);
623 #endif 622 #endif
624 EventTargetWithInlineData::trace(visitor); 623 EventTargetWithInlineData::trace(visitor);
625 } 624 }
626 625
627 } 626 }
OLDNEW
« no previous file with comments | « Source/core/html/ImageData.cpp ('k') | Source/core/html/MediaError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698