| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2003, 2005, 2006 Apple Computer, Inc. |
| 6 * Copyright (C) 2013 Samsung Electronics. | 6 * Copyright (C) 2013 Samsung Electronics. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "config.h" |
| 25 #include "core/events/BeforeUnloadEvent.h" | 25 #include "core/events/BeforeUnloadEvent.h" |
| 26 | 26 |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 BeforeUnloadEvent::BeforeUnloadEvent() | 30 BeforeUnloadEvent::BeforeUnloadEvent() |
| 31 : Event(EventTypeNames::beforeunload, false, true) | 31 : Event(EventTypeNames::beforeunload, false, true) |
| 32 { | 32 { |
| 33 ScriptWrappable::init(this); | |
| 34 } | 33 } |
| 35 | 34 |
| 36 BeforeUnloadEvent::~BeforeUnloadEvent() | 35 BeforeUnloadEvent::~BeforeUnloadEvent() |
| 37 { | 36 { |
| 38 } | 37 } |
| 39 | 38 |
| 40 bool BeforeUnloadEvent::isBeforeUnloadEvent() const | 39 bool BeforeUnloadEvent::isBeforeUnloadEvent() const |
| 41 { | 40 { |
| 42 return true; | 41 return true; |
| 43 } | 42 } |
| 44 | 43 |
| 45 void BeforeUnloadEvent::trace(Visitor* visitor) | 44 void BeforeUnloadEvent::trace(Visitor* visitor) |
| 46 { | 45 { |
| 47 Event::trace(visitor); | 46 Event::trace(visitor); |
| 48 } | 47 } |
| 49 | 48 |
| 50 } // namespace blink | 49 } // namespace blink |
| OLD | NEW |