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

Side by Side Diff: Source/core/html/MediaKeyEvent.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/MediaKeyError.h ('k') | Source/core/html/RadioNodeList.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 MediaKeyEventInit::MediaKeyEventInit() 33 MediaKeyEventInit::MediaKeyEventInit()
34 : systemCode(0) 34 : systemCode(0)
35 { 35 {
36 } 36 }
37 37
38 MediaKeyEvent::MediaKeyEvent() 38 MediaKeyEvent::MediaKeyEvent()
39 { 39 {
40 ScriptWrappable::init(this);
41 } 40 }
42 41
43 MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer) 42 MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer)
44 : Event(type, initializer) 43 : Event(type, initializer)
45 , m_keySystem(initializer.keySystem) 44 , m_keySystem(initializer.keySystem)
46 , m_sessionId(initializer.sessionId) 45 , m_sessionId(initializer.sessionId)
47 , m_initData(initializer.initData) 46 , m_initData(initializer.initData)
48 , m_message(initializer.message) 47 , m_message(initializer.message)
49 , m_defaultURL(initializer.defaultURL) 48 , m_defaultURL(initializer.defaultURL)
50 , m_errorCode(initializer.errorCode) 49 , m_errorCode(initializer.errorCode)
51 , m_systemCode(initializer.systemCode) 50 , m_systemCode(initializer.systemCode)
52 { 51 {
53 ScriptWrappable::init(this);
54 } 52 }
55 53
56 MediaKeyEvent::~MediaKeyEvent() 54 MediaKeyEvent::~MediaKeyEvent()
57 { 55 {
58 } 56 }
59 57
60 const AtomicString& MediaKeyEvent::interfaceName() const 58 const AtomicString& MediaKeyEvent::interfaceName() const
61 { 59 {
62 return EventNames::MediaKeyEvent; 60 return EventNames::MediaKeyEvent;
63 } 61 }
64 62
65 void MediaKeyEvent::trace(Visitor* visitor) 63 void MediaKeyEvent::trace(Visitor* visitor)
66 { 64 {
67 visitor->trace(m_errorCode); 65 visitor->trace(m_errorCode);
68 Event::trace(visitor); 66 Event::trace(visitor);
69 } 67 }
70 68
71 } // namespace blink 69 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/MediaKeyError.h ('k') | Source/core/html/RadioNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698