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

Side by Side Diff: Source/WebCore/dom/CompositionEvent.cpp

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/Comment.cpp ('k') | Source/WebCore/dom/CustomEvent.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 19 matching lines...) Expand all
30 #include "EventNames.h" 30 #include "EventNames.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 CompositionEventInit::CompositionEventInit() 34 CompositionEventInit::CompositionEventInit()
35 { 35 {
36 } 36 }
37 37
38 CompositionEvent::CompositionEvent() 38 CompositionEvent::CompositionEvent()
39 { 39 {
40 ScriptWrappable::init(this);
40 } 41 }
41 42
42 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtr<Abstract View> view, const String& data) 43 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtr<Abstract View> view, const String& data)
43 : UIEvent(type, true, true, view, 0) 44 : UIEvent(type, true, true, view, 0)
44 , m_data(data) 45 , m_data(data)
45 { 46 {
47 ScriptWrappable::init(this);
46 } 48 }
47 49
48 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer) 50 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv entInit& initializer)
49 : UIEvent(type, initializer) 51 : UIEvent(type, initializer)
50 , m_data(initializer.data) 52 , m_data(initializer.data)
51 { 53 {
54 ScriptWrappable::init(this);
52 } 55 }
53 56
54 CompositionEvent::~CompositionEvent() 57 CompositionEvent::~CompositionEvent()
55 { 58 {
56 } 59 }
57 60
58 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu bble, bool cancelable, PassRefPtr<AbstractView> view, const String& data) 61 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu bble, bool cancelable, PassRefPtr<AbstractView> view, const String& data)
59 { 62 {
60 if (dispatched()) 63 if (dispatched())
61 return; 64 return;
62 65
63 initUIEvent(type, canBubble, cancelable, view, 0); 66 initUIEvent(type, canBubble, cancelable, view, 0);
64 67
65 m_data = data; 68 m_data = data;
66 } 69 }
67 70
68 const AtomicString& CompositionEvent::interfaceName() const 71 const AtomicString& CompositionEvent::interfaceName() const
69 { 72 {
70 return eventNames().interfaceForCompositionEvent; 73 return eventNames().interfaceForCompositionEvent;
71 } 74 }
72 75
73 } // namespace WebCore 76 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Comment.cpp ('k') | Source/WebCore/dom/CustomEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698