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

Side by Side Diff: Source/core/events/UIEvent.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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/core/events/TransitionEvent.cpp ('k') | Source/core/events/WebKitAnimationEvent.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) 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, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 17 matching lines...) Expand all
28 28
29 UIEventInit::UIEventInit() 29 UIEventInit::UIEventInit()
30 : view(nullptr) 30 : view(nullptr)
31 , detail(0) 31 , detail(0)
32 { 32 {
33 } 33 }
34 34
35 UIEvent::UIEvent() 35 UIEvent::UIEvent()
36 : m_detail(0) 36 : m_detail(0)
37 { 37 {
38 ScriptWrappable::init(this);
39 } 38 }
40 39
41 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) 40 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
42 : Event(eventType, canBubbleArg, cancelableArg) 41 : Event(eventType, canBubbleArg, cancelableArg)
43 , m_view(viewArg) 42 , m_view(viewArg)
44 , m_detail(detailArg) 43 , m_detail(detailArg)
45 { 44 {
46 ScriptWrappable::init(this);
47 } 45 }
48 46
49 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) 47 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer)
50 : Event(eventType, initializer) 48 : Event(eventType, initializer)
51 , m_view(initializer.view) 49 , m_view(initializer.view)
52 , m_detail(initializer.detail) 50 , m_detail(initializer.detail)
53 { 51 {
54 ScriptWrappable::init(this);
55 } 52 }
56 53
57 UIEvent::~UIEvent() 54 UIEvent::~UIEvent()
58 { 55 {
59 } 56 }
60 57
61 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c ancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) 58 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c ancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
62 { 59 {
63 if (dispatched()) 60 if (dispatched())
64 return; 61 return;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return 0; 111 return 0;
115 } 112 }
116 113
117 void UIEvent::trace(Visitor* visitor) 114 void UIEvent::trace(Visitor* visitor)
118 { 115 {
119 visitor->trace(m_view); 116 visitor->trace(m_view);
120 Event::trace(visitor); 117 Event::trace(visitor);
121 } 118 }
122 119
123 } // namespace blink 120 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/TransitionEvent.cpp ('k') | Source/core/events/WebKitAnimationEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698