Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: Source/WebCore/dom/BeforeLoadEvent.h

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/dom/AutocompleteErrorEvent.h ('k') | Source/WebCore/dom/CDATASection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/dom/AutocompleteErrorEvent.h ('k') | Source/WebCore/dom/CDATASection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698