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

Side by Side Diff: Source/WebCore/Modules/websockets/CloseEvent.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Event function. 72 // Event function.
73 virtual const AtomicString& interfaceName() const OVERRIDE { return eventNam es().interfaceForCloseEvent; } 73 virtual const AtomicString& interfaceName() const OVERRIDE { return eventNam es().interfaceForCloseEvent; }
74 74
75 private: 75 private:
76 CloseEvent() 76 CloseEvent()
77 : Event(eventNames().closeEvent, false, false) 77 : Event(eventNames().closeEvent, false, false)
78 , m_wasClean(false) 78 , m_wasClean(false)
79 , m_code(0) 79 , m_code(0)
80 { 80 {
81 ScriptWrappable::init(this);
81 } 82 }
82 83
83 CloseEvent(bool wasClean, int code, const String& reason) 84 CloseEvent(bool wasClean, int code, const String& reason)
84 : Event(eventNames().closeEvent, false, false) 85 : Event(eventNames().closeEvent, false, false)
85 , m_wasClean(wasClean) 86 , m_wasClean(wasClean)
86 , m_code(code) 87 , m_code(code)
87 , m_reason(reason) 88 , m_reason(reason)
88 { 89 {
90 ScriptWrappable::init(this);
89 } 91 }
90 92
91 CloseEvent(const AtomicString& type, const CloseEventInit& initializer) 93 CloseEvent(const AtomicString& type, const CloseEventInit& initializer)
92 : Event(type, initializer) 94 : Event(type, initializer)
93 , m_wasClean(initializer.wasClean) 95 , m_wasClean(initializer.wasClean)
94 , m_code(initializer.code) 96 , m_code(initializer.code)
95 , m_reason(initializer.reason) 97 , m_reason(initializer.reason)
96 { 98 {
99 ScriptWrappable::init(this);
97 } 100 }
98 101
99 bool m_wasClean; 102 bool m_wasClean;
100 unsigned short m_code; 103 unsigned short m_code;
101 String m_reason; 104 String m_reason;
102 }; 105 };
103 106
104 } // namespace WebCore 107 } // namespace WebCore
105 108
106 #endif // CloseEvent_h 109 #endif // CloseEvent_h
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp ('k') | Source/WebCore/bindings/v8/ScriptWrappable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698