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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 MediaKeyEventInit::MediaKeyEventInit() | 37 MediaKeyEventInit::MediaKeyEventInit() |
38 : systemCode(0) | 38 : systemCode(0) |
39 { | 39 { |
40 } | 40 } |
41 | 41 |
42 MediaKeyEvent::MediaKeyEvent() | 42 MediaKeyEvent::MediaKeyEvent() |
43 { | 43 { |
| 44 ScriptWrappable::init(this); |
44 } | 45 } |
45 | 46 |
46 MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit&
initializer) | 47 MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit&
initializer) |
47 : Event(type, initializer) | 48 : Event(type, initializer) |
48 , m_keySystem(initializer.keySystem) | 49 , m_keySystem(initializer.keySystem) |
49 , m_sessionId(initializer.sessionId) | 50 , m_sessionId(initializer.sessionId) |
50 , m_initData(initializer.initData) | 51 , m_initData(initializer.initData) |
51 , m_message(initializer.message) | 52 , m_message(initializer.message) |
52 , m_defaultURL(initializer.defaultURL) | 53 , m_defaultURL(initializer.defaultURL) |
53 , m_errorCode(initializer.errorCode) | 54 , m_errorCode(initializer.errorCode) |
54 , m_systemCode(initializer.systemCode) | 55 , m_systemCode(initializer.systemCode) |
55 { | 56 { |
| 57 ScriptWrappable::init(this); |
56 } | 58 } |
57 | 59 |
58 MediaKeyEvent::~MediaKeyEvent() | 60 MediaKeyEvent::~MediaKeyEvent() |
59 { | 61 { |
60 } | 62 } |
61 | 63 |
62 const AtomicString& MediaKeyEvent::interfaceName() const | 64 const AtomicString& MediaKeyEvent::interfaceName() const |
63 { | 65 { |
64 return eventNames().interfaceForMediaKeyEvent; | 66 return eventNames().interfaceForMediaKeyEvent; |
65 } | 67 } |
66 | 68 |
67 } // namespace WebCore | 69 } // namespace WebCore |
68 | 70 |
69 #endif | 71 #endif |
OLD | NEW |