Bug 1188539 - Remove the deprecated TouchList::identifiedTouch method; r=jst
MozReview-Commit-ID: Gvsky55K19X
--- a/dom/events/TouchEvent.cpp
+++ b/dom/events/TouchEvent.cpp
@@ -38,28 +38,16 @@ TouchList::WrapObject(JSContext* aCx, JS
// static
bool
TouchList::PrefEnabled(JSContext* aCx, JSObject* aGlobal)
{
return TouchEvent::PrefEnabled(aCx, aGlobal);
}
-Touch*
-TouchList::IdentifiedTouch(int32_t aIdentifier) const
-{
- for (uint32_t i = 0; i < mPoints.Length(); ++i) {
- Touch* point = mPoints[i];
- if (point && point->Identifier() == aIdentifier) {
- return point;
- }
- }
- return nullptr;
-}
-
/******************************************************************************
* TouchEvent
*****************************************************************************/
TouchEvent::TouchEvent(EventTarget* aOwner,
nsPresContext* aPresContext,
WidgetTouchEvent* aEvent)
: UIEvent(aOwner, aPresContext,
--- a/dom/events/TouchEvent.h
+++ b/dom/events/TouchEvent.h
@@ -66,17 +66,16 @@ public:
Touch* IndexedGetter(uint32_t aIndex, bool& aFound) const
{
aFound = aIndex < mPoints.Length();
if (!aFound) {
return nullptr;
}
return mPoints[aIndex];
}
- Touch* IdentifiedTouch(int32_t aIdentifier) const;
protected:
~TouchList() {}
nsCOMPtr<nsISupports> mParent;
WidgetTouchEvent::TouchArray mPoints;
};
--- a/dom/webidl/TouchList.webidl
+++ b/dom/webidl/TouchList.webidl
@@ -11,13 +11,8 @@
*/
[Func="mozilla::dom::TouchList::PrefEnabled"]
interface TouchList {
[Pure]
readonly attribute unsigned long length;
getter Touch? item(unsigned long index);
};
-
-/* Mozilla extension. */
-partial interface TouchList {
- Touch? identifiedTouch(long identifier);
-};