| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "core/html/canvas/WebGLContextEvent.h" | 27 #include "core/html/canvas/WebGLContextEvent.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 WebGLContextEventInit::WebGLContextEventInit() | 31 WebGLContextEventInit::WebGLContextEventInit() |
| 32 { | 32 { |
| 33 } | 33 } |
| 34 | 34 |
| 35 WebGLContextEvent::WebGLContextEvent() | 35 WebGLContextEvent::WebGLContextEvent() |
| 36 { | 36 { |
| 37 ScriptWrappable::init(this); | |
| 38 } | 37 } |
| 39 | 38 |
| 40 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b
ool cancelable, const String& statusMessage) | 39 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b
ool cancelable, const String& statusMessage) |
| 41 : Event(type, canBubble, cancelable) | 40 : Event(type, canBubble, cancelable) |
| 42 , m_statusMessage(statusMessage) | 41 , m_statusMessage(statusMessage) |
| 43 { | 42 { |
| 44 ScriptWrappable::init(this); | |
| 45 } | 43 } |
| 46 | 44 |
| 47 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex
tEventInit& initializer) | 45 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex
tEventInit& initializer) |
| 48 : Event(type, initializer) | 46 : Event(type, initializer) |
| 49 , m_statusMessage(initializer.statusMessage) | 47 , m_statusMessage(initializer.statusMessage) |
| 50 { | 48 { |
| 51 ScriptWrappable::init(this); | |
| 52 } | 49 } |
| 53 | 50 |
| 54 WebGLContextEvent::~WebGLContextEvent() | 51 WebGLContextEvent::~WebGLContextEvent() |
| 55 { | 52 { |
| 56 } | 53 } |
| 57 | 54 |
| 58 const AtomicString& WebGLContextEvent::interfaceName() const | 55 const AtomicString& WebGLContextEvent::interfaceName() const |
| 59 { | 56 { |
| 60 return EventNames::WebGLContextEvent; | 57 return EventNames::WebGLContextEvent; |
| 61 } | 58 } |
| 62 | 59 |
| 63 void WebGLContextEvent::trace(Visitor* visitor) | 60 void WebGLContextEvent::trace(Visitor* visitor) |
| 64 { | 61 { |
| 65 Event::trace(visitor); | 62 Event::trace(visitor); |
| 66 } | 63 } |
| 67 | 64 |
| 68 } // namespace blink | 65 } // namespace blink |
| OLD | NEW |