| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return adoptRef(new BeforeLoadEvent(type, initializer)); | 57 return adoptRef(new BeforeLoadEvent(type, initializer)); |
| 58 } | 58 } |
| 59 | 59 |
| 60 const String& url() const { return m_url; } | 60 const String& url() const { return m_url; } |
| 61 | 61 |
| 62 virtual const AtomicString& interfaceName() const { return eventNames().inte
rfaceForBeforeLoadEvent; } | 62 virtual const AtomicString& interfaceName() const { return eventNames().inte
rfaceForBeforeLoadEvent; } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 BeforeLoadEvent() | 65 BeforeLoadEvent() |
| 66 { | 66 { |
| 67 ScriptWrappable::init(this); |
| 67 } | 68 } |
| 68 | 69 |
| 69 explicit BeforeLoadEvent(const String& url) | 70 explicit BeforeLoadEvent(const String& url) |
| 70 : Event(eventNames().beforeloadEvent, false, true) | 71 : Event(eventNames().beforeloadEvent, false, true) |
| 71 , m_url(url) | 72 , m_url(url) |
| 72 { | 73 { |
| 74 ScriptWrappable::init(this); |
| 73 } | 75 } |
| 74 | 76 |
| 75 BeforeLoadEvent(const AtomicString& type, const BeforeLoadEventInit& initial
izer) | 77 BeforeLoadEvent(const AtomicString& type, const BeforeLoadEventInit& initial
izer) |
| 76 : Event(type, initializer) | 78 : Event(type, initializer) |
| 77 , m_url(initializer.url) | 79 , m_url(initializer.url) |
| 78 { | 80 { |
| 81 ScriptWrappable::init(this); |
| 79 } | 82 } |
| 80 | 83 |
| 81 String m_url; | 84 String m_url; |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 } // namespace WebCore | 87 } // namespace WebCore |
| 85 | 88 |
| 86 #endif // BeforeLoadEvent_h | 89 #endif // BeforeLoadEvent_h |
| OLD | NEW |