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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 14 matching lines...) Expand all
25 25
26 namespace blink { 26 namespace blink {
27 27
28 UIEvent::UIEvent() 28 UIEvent::UIEvent()
29 : m_detail(0) 29 : m_detail(0)
30 , m_sourceCapabilities(nullptr) 30 , m_sourceCapabilities(nullptr)
31 { 31 {
32 } 32 }
33 33
34 // TODO(lanwei): Will add sourceCapabilities to all the subclass of UIEvent late r, see https://crbug.com/476530. 34 // TODO(lanwei): Will add sourceCapabilities to all the subclass of UIEvent late r, see https://crbug.com/476530.
35 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDeviceC apabilities* sourceCapabilitiesArg) 35 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, RawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sou rceCapabilitiesArg)
36 : Event(eventType, canBubbleArg, cancelableArg) 36 : Event(eventType, canBubbleArg, cancelableArg)
37 , m_view(viewArg) 37 , m_view(viewArg)
38 , m_detail(detailArg) 38 , m_detail(detailArg)
39 , m_sourceCapabilities(sourceCapabilitiesArg) 39 , m_sourceCapabilities(sourceCapabilitiesArg)
40 { 40 {
41 } 41 }
42 42
43 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, EventTarget* relatedTarget, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg) 43 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, EventTarget* relatedTarget, RawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
44 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget) 44 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget)
45 , m_view(viewArg) 45 , m_view(viewArg)
46 , m_detail(detailArg) 46 , m_detail(detailArg)
47 , m_sourceCapabilities(sourceCapabilitiesArg) 47 , m_sourceCapabilities(sourceCapabilitiesArg)
48 { 48 {
49 } 49 }
50 50
51 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, double platformTimeStamp, PassRefPtrWillBeRawPtr<AbstractView> viewArg, i nt detailArg, InputDeviceCapabilities* sourceCapabilitiesArg) 51 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, double platformTimeStamp, RawPtr<AbstractView> viewArg, int detailArg, In putDeviceCapabilities* sourceCapabilitiesArg)
52 : Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp) 52 : Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp)
53 , m_view(viewArg) 53 , m_view(viewArg)
54 , m_detail(detailArg) 54 , m_detail(detailArg)
55 , m_sourceCapabilities(sourceCapabilitiesArg) 55 , m_sourceCapabilities(sourceCapabilitiesArg)
56 { 56 {
57 } 57 }
58 58
59 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, EventTarget* relatedTarget, double platformTimeStamp, PassRefPtrWillBeRaw Ptr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabil itiesArg) 59 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab leArg, EventTarget* relatedTarget, double platformTimeStamp, RawPtr<AbstractView > viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
60 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget, platformTimeS tamp) 60 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget, platformTimeS tamp)
61 , m_view(viewArg) 61 , m_view(viewArg)
62 , m_detail(detailArg) 62 , m_detail(detailArg)
63 , m_sourceCapabilities(sourceCapabilitiesArg) 63 , m_sourceCapabilities(sourceCapabilitiesArg)
64 { 64 {
65 } 65 }
66 66
67 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) 67 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer)
68 : Event(eventType, initializer) 68 : Event(eventType, initializer)
69 , m_view(initializer.view()) 69 , m_view(initializer.view())
70 , m_detail(initializer.detail()) 70 , m_detail(initializer.detail())
71 , m_sourceCapabilities(initializer.sourceCapabilities()) 71 , m_sourceCapabilities(initializer.sourceCapabilities())
72 { 72 {
73 } 73 }
74 74
75 UIEvent::~UIEvent() 75 UIEvent::~UIEvent()
76 { 76 {
77 } 77 }
78 78
79 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c ancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) 79 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c ancelableArg, RawPtr<AbstractView> viewArg, int detailArg)
80 { 80 {
81 initUIEventInternal(typeArg, canBubbleArg, cancelableArg, nullptr, viewArg, detailArg, nullptr); 81 initUIEventInternal(typeArg, canBubbleArg, cancelableArg, nullptr, viewArg, detailArg, nullptr);
82 } 82 }
83 83
84 void UIEvent::initUIEventInternal(const AtomicString& typeArg, bool canBubbleArg , bool cancelableArg, EventTarget* relatedTarget, PassRefPtrWillBeRawPtr<Abstrac tView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg) 84 void UIEvent::initUIEventInternal(const AtomicString& typeArg, bool canBubbleArg , bool cancelableArg, EventTarget* relatedTarget, RawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
85 { 85 {
86 if (dispatched()) 86 if (dispatched())
87 return; 87 return;
88 88
89 initEvent(typeArg, canBubbleArg, cancelableArg, relatedTarget); 89 initEvent(typeArg, canBubbleArg, cancelableArg, relatedTarget);
90 90
91 m_view = viewArg; 91 m_view = viewArg;
92 m_detail = detailArg; 92 m_detail = detailArg;
93 m_sourceCapabilities = sourceCapabilitiesArg; 93 m_sourceCapabilities = sourceCapabilitiesArg;
94 } 94 }
(...skipping 14 matching lines...) Expand all
109 } 109 }
110 110
111 DEFINE_TRACE(UIEvent) 111 DEFINE_TRACE(UIEvent)
112 { 112 {
113 visitor->trace(m_view); 113 visitor->trace(m_view);
114 visitor->trace(m_sourceCapabilities); 114 visitor->trace(m_sourceCapabilities);
115 Event::trace(visitor); 115 Event::trace(visitor);
116 } 116 }
117 117
118 } // namespace blink 118 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEvent.h ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698