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

Side by Side Diff: Source/core/events/EventDispatcher.h

Issue 333623002: Oilpan: Prepare to move EventDispatchMediator to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/EventDispatchMediator.cpp ('k') | Source/core/events/EventDispatcher.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 30 matching lines...) Expand all
41 class WindowEventContext; 41 class WindowEventContext;
42 42
43 enum EventDispatchContinuation { 43 enum EventDispatchContinuation {
44 ContinueDispatching, 44 ContinueDispatching,
45 DoneDispatching 45 DoneDispatching
46 }; 46 };
47 47
48 class EventDispatcher { 48 class EventDispatcher {
49 STACK_ALLOCATED(); 49 STACK_ALLOCATED();
50 public: 50 public:
51 static bool dispatchEvent(Node*, PassRefPtr<EventDispatchMediator>); 51 static bool dispatchEvent(Node*, PassRefPtrWillBeRawPtr<EventDispatchMediato r>);
52 static void dispatchScopedEvent(Node*, PassRefPtr<EventDispatchMediator>); 52 static void dispatchScopedEvent(Node*, PassRefPtrWillBeRawPtr<EventDispatchM ediator>);
53 53
54 static void dispatchSimulatedClick(Node*, Event* underlyingEvent, SimulatedC lickMouseEventOptions); 54 static void dispatchSimulatedClick(Node*, Event* underlyingEvent, SimulatedC lickMouseEventOptions);
55 55
56 bool dispatch(); 56 bool dispatch();
57 Node* node() const { return m_node.get(); } 57 Node* node() const { return m_node.get(); }
58 Event* event() const { return m_event.get(); } 58 Event* event() const { return m_event.get(); }
59 59
60 private: 60 private:
61 EventDispatcher(Node*, PassRefPtrWillBeRawPtr<Event>); 61 EventDispatcher(Node*, PassRefPtrWillBeRawPtr<Event>);
62 const NodeEventContext* topNodeEventContext(); 62 const NodeEventContext* topNodeEventContext();
63 63
64 EventDispatchContinuation dispatchEventPreProcess(void*& preDispatchEventHan dlerResult); 64 EventDispatchContinuation dispatchEventPreProcess(void*& preDispatchEventHan dlerResult);
65 EventDispatchContinuation dispatchEventAtCapturing(WindowEventContext&); 65 EventDispatchContinuation dispatchEventAtCapturing(WindowEventContext&);
66 EventDispatchContinuation dispatchEventAtTarget(); 66 EventDispatchContinuation dispatchEventAtTarget();
67 void dispatchEventAtBubbling(WindowEventContext&); 67 void dispatchEventAtBubbling(WindowEventContext&);
68 void dispatchEventPostProcess(void* preDispatchEventHandlerResult); 68 void dispatchEventPostProcess(void* preDispatchEventHandlerResult);
69 69
70 RefPtrWillBeMember<Node> m_node; 70 RefPtrWillBeMember<Node> m_node;
71 RefPtrWillBeMember<Event> m_event; 71 RefPtrWillBeMember<Event> m_event;
72 RefPtr<FrameView> m_view; 72 RefPtr<FrameView> m_view;
73 #ifndef NDEBUG 73 #ifndef NDEBUG
74 bool m_eventDispatched; 74 bool m_eventDispatched;
75 #endif 75 #endif
76 }; 76 };
77 77
78 } 78 }
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/core/events/EventDispatchMediator.cpp ('k') | Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698