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

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

Issue 1227363006: Virtualize EventDispatchMediator creation and cleanup calling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main
Patch Set: Rebase Created 5 years, 5 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 | « Source/core/events/FocusEvent.cpp ('k') | Source/core/events/GestureEvent.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 28 matching lines...) Expand all
39 39
40 static PassRefPtrWillBeRawPtr<GestureEvent> create(PassRefPtrWillBeRawPtr<Ab stractView>, const PlatformGestureEvent&); 40 static PassRefPtrWillBeRawPtr<GestureEvent> create(PassRefPtrWillBeRawPtr<Ab stractView>, const PlatformGestureEvent&);
41 41
42 bool isGestureEvent() const override; 42 bool isGestureEvent() const override;
43 43
44 const AtomicString& interfaceName() const override; 44 const AtomicString& interfaceName() const override;
45 45
46 float deltaX() const { return m_deltaX; } 46 float deltaX() const { return m_deltaX; }
47 float deltaY() const { return m_deltaY; } 47 float deltaY() const { return m_deltaY; }
48 48
49 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
50
49 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
50 52
51 private: 53 private:
52 GestureEvent(); 54 GestureEvent();
53 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimeStamp); 55 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimeStamp);
54 56
55 float m_deltaX; 57 float m_deltaX;
56 float m_deltaY; 58 float m_deltaY;
57 }; 59 };
58 60
(...skipping 10 matching lines...) Expand all
69 GestureEvent& event() const; 71 GestureEvent& event() const;
70 72
71 bool dispatchEvent(EventDispatcher&) const override; 73 bool dispatchEvent(EventDispatcher&) const override;
72 }; 74 };
73 75
74 DEFINE_EVENT_TYPE_CASTS(GestureEvent); 76 DEFINE_EVENT_TYPE_CASTS(GestureEvent);
75 77
76 } // namespace blink 78 } // namespace blink
77 79
78 #endif // GestureEvent_h 80 #endif // GestureEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/FocusEvent.cpp ('k') | Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698