OLD | NEW |
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 Loading... |
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 |
OLD | NEW |