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

Side by Side Diff: sky/engine/core/events/Event.cpp

Issue 846783003: Add PointerEvent interface to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/events/Event.h ('k') | sky/engine/core/events/PointerEvent.h » ('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 14 matching lines...) Expand all
25 25
26 #include "gen/sky/core/EventHeaders.h" 26 #include "gen/sky/core/EventHeaders.h"
27 #include "gen/sky/core/EventInterfaces.h" 27 #include "gen/sky/core/EventInterfaces.h"
28 #include "sky/engine/core/dom/StaticNodeList.h" 28 #include "sky/engine/core/dom/StaticNodeList.h"
29 #include "sky/engine/core/events/EventTarget.h" 29 #include "sky/engine/core/events/EventTarget.h"
30 #include "sky/engine/core/frame/UseCounter.h" 30 #include "sky/engine/core/frame/UseCounter.h"
31 #include "sky/engine/wtf/CurrentTime.h" 31 #include "sky/engine/wtf/CurrentTime.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 EventInit::EventInit()
36 : bubbles(false)
37 , cancelable(false)
38 {
39 }
40
41
42 Event::Event() 35 Event::Event()
43 : m_canBubble(false) 36 : m_canBubble(false)
44 , m_cancelable(false) 37 , m_cancelable(false)
45 , m_propagationStopped(false) 38 , m_propagationStopped(false)
46 , m_immediatePropagationStopped(false) 39 , m_immediatePropagationStopped(false)
47 , m_defaultPrevented(false) 40 , m_defaultPrevented(false)
48 , m_defaultHandled(false) 41 , m_defaultHandled(false)
49 , m_cancelBubble(false) 42 , m_cancelBubble(false)
50 , m_eventPhase(0) 43 , m_eventPhase(0)
51 , m_currentTarget(nullptr) 44 , m_currentTarget(nullptr)
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 226 }
234 return StaticNodeList::createEmpty(); 227 return StaticNodeList::createEmpty();
235 } 228 }
236 229
237 EventTarget* Event::currentTarget() const 230 EventTarget* Event::currentTarget() const
238 { 231 {
239 return m_currentTarget.get(); 232 return m_currentTarget.get();
240 } 233 }
241 234
242 } // namespace blink 235 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/events/Event.h ('k') | sky/engine/core/events/PointerEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698