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

Side by Side Diff: third_party/WebKit/Source/core/events/TouchEvent.h

Issue 2182183003: Remove |TouchEvent.initTouchEvent()| in M54 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 { 53 {
54 return new TouchEvent(touches, targetTouches, changedTouches, type, view , 54 return new TouchEvent(touches, targetTouches, changedTouches, type, view ,
55 modifiers, cancelable, causesScrollingIfUncanceled, firstTouchMoveOr Start, platformTimeStamp); 55 modifiers, cancelable, causesScrollingIfUncanceled, firstTouchMoveOr Start, platformTimeStamp);
56 } 56 }
57 57
58 static TouchEvent* create(const AtomicString& type, const TouchEventInit& in itializer) 58 static TouchEvent* create(const AtomicString& type, const TouchEventInit& in itializer)
59 { 59 {
60 return new TouchEvent(type, initializer); 60 return new TouchEvent(type, initializer);
61 } 61 }
62 62
63 void initTouchEvent(ScriptState*, TouchList* touches, TouchList* targetTouch es,
64 TouchList* changedTouches, const AtomicString& type,
65 AbstractView*,
66 int, int, int, int, // unused useless members of web exposed API
67 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
68
69 TouchList* touches() const { return m_touches.get(); } 63 TouchList* touches() const { return m_touches.get(); }
70 TouchList* targetTouches() const { return m_targetTouches.get(); } 64 TouchList* targetTouches() const { return m_targetTouches.get(); }
71 TouchList* changedTouches() const { return m_changedTouches.get(); } 65 TouchList* changedTouches() const { return m_changedTouches.get(); }
72 66
73 void setTouches(TouchList* touches) { m_touches = touches; } 67 void setTouches(TouchList* touches) { m_touches = touches; }
74 void setTargetTouches(TouchList* targetTouches) { m_targetTouches = targetTo uches; } 68 void setTargetTouches(TouchList* targetTouches) { m_targetTouches = targetTo uches; }
75 void setChangedTouches(TouchList* changedTouches) { m_changedTouches = chang edTouches; } 69 void setChangedTouches(TouchList* changedTouches) { m_changedTouches = chang edTouches; }
76 70
77 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance led; } 71 bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncance led; }
78 72
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 explicit TouchEventDispatchMediator(TouchEvent*); 108 explicit TouchEventDispatchMediator(TouchEvent*);
115 TouchEvent& event() const; 109 TouchEvent& event() const;
116 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 110 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
117 }; 111 };
118 112
119 DEFINE_EVENT_TYPE_CASTS(TouchEvent); 113 DEFINE_EVENT_TYPE_CASTS(TouchEvent);
120 114
121 } // namespace blink 115 } // namespace blink
122 116
123 #endif // TouchEvent_h 117 #endif // TouchEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698