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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 868133003: Remove touch events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 794c8a00b5c994b3ab04b38dfbf2d5700085b16a..128b53499baccce93d7efe470c7583fe38570aa8 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -72,7 +72,6 @@
#include "sky/engine/core/dom/StaticNodeList.h"
#include "sky/engine/core/dom/StyleEngine.h"
#include "sky/engine/core/dom/Text.h"
-#include "sky/engine/core/dom/TouchList.h"
#include "sky/engine/core/dom/custom/CustomElementMicrotaskRunQueue.h"
#include "sky/engine/core/dom/custom/CustomElementRegistrationContext.h"
#include "sky/engine/core/dom/shadow/ElementShadow.h"
@@ -2269,40 +2268,6 @@ void Document::serviceScriptedAnimations(double monotonicAnimationStartTime)
m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationStartTime);
}
-PassRefPtr<Touch> Document::createTouch(LocalDOMWindow* window, EventTarget* target, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const
-{
- // Match behavior from when these types were integers, and avoid surprises from someone explicitly
- // passing Infinity/NaN.
- if (!std::isfinite(pageX))
- pageX = 0;
- if (!std::isfinite(pageY))
- pageY = 0;
- if (!std::isfinite(screenX))
- screenX = 0;
- if (!std::isfinite(screenY))
- screenY = 0;
- if (!std::isfinite(radiusX))
- radiusX = 0;
- if (!std::isfinite(radiusY))
- radiusY = 0;
- if (!std::isfinite(rotationAngle))
- rotationAngle = 0;
- if (!std::isfinite(force))
- force = 0;
-
- // FIXME: It's not clear from the documentation at
- // http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
- // when this method should throw and nor is it by inspection of iOS behavior. It would be nice to verify any cases where it throws under iOS
- // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=47819
- LocalFrame* frame = window ? window->frame() : this->frame();
- return Touch::create(frame, target, identifier, FloatPoint(screenX, screenY), FloatPoint(pageX, pageY), FloatSize(radiusX, radiusY), rotationAngle, force);
-}
-
-PassRefPtr<TouchList> Document::createTouchList(Vector<RefPtr<Touch> >& touches) const
-{
- return TouchList::adopt(touches);
-}
-
DocumentLoadTiming* Document::timing() const
{
return &m_documentLoadTiming;
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698