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

Side by Side Diff: Source/core/events/TouchEvent.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/PointerEvent.cpp ('k') | Source/core/events/TouchEvent.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 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m _changedTouches = changedTouches; } 69 void setChangedTouches(PassRefPtrWillBeRawPtr<TouchList> changedTouches) { m _changedTouches = changedTouches; }
70 70
71 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance led; } 71 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance led; }
72 72
73 bool isTouchEvent() const override; 73 bool isTouchEvent() const override;
74 74
75 const AtomicString& interfaceName() const override; 75 const AtomicString& interfaceName() const override;
76 76
77 void preventDefault() override; 77 void preventDefault() override;
78 78
79 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
80
79 DECLARE_VIRTUAL_TRACE(); 81 DECLARE_VIRTUAL_TRACE();
80 82
81 private: 83 private:
82 TouchEvent(); 84 TouchEvent();
83 TouchEvent(TouchList* touches, TouchList* targetTouches, 85 TouchEvent(TouchList* touches, TouchList* targetTouches,
84 TouchList* changedTouches, const AtomicString& type, 86 TouchList* changedTouches, const AtomicString& type,
85 PassRefPtrWillBeRawPtr<AbstractView>, 87 PassRefPtrWillBeRawPtr<AbstractView>,
86 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela ble, bool causesScrollingIfUncanceled, 88 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancela ble, bool causesScrollingIfUncanceled,
87 double uiCreateTime = 0); 89 double uiCreateTime = 0);
88 90
(...skipping 11 matching lines...) Expand all
100 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>); 102 explicit TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<TouchEvent>);
101 TouchEvent& event() const; 103 TouchEvent& event() const;
102 bool dispatchEvent(EventDispatcher&) const override; 104 bool dispatchEvent(EventDispatcher&) const override;
103 }; 105 };
104 106
105 DEFINE_EVENT_TYPE_CASTS(TouchEvent); 107 DEFINE_EVENT_TYPE_CASTS(TouchEvent);
106 108
107 } // namespace blink 109 } // namespace blink
108 110
109 #endif // TouchEvent_h 111 #endif // TouchEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/PointerEvent.cpp ('k') | Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698