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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp

Issue 1654653002: Canvas2d: Implement rerouting event by hit region's control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot errors Created 4 years, 9 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
Index: third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp b/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp
deleted file mode 100644
index 2b5ccf7f8a9f9ef7dfb48121c17d0c00408369bc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "modules/canvas2d/TouchHitRegion.h"
-
-#include "core/dom/Touch.h"
-#include "core/html/HTMLCanvasElement.h"
-
-namespace blink {
-
-String TouchHitRegion::region(Touch& touch)
-{
- if (!touch.target() || !isHTMLCanvasElement(touch.target()->toNode()))
- return String();
-
- HTMLCanvasElement* canvas = toHTMLCanvasElement(touch.target()->toNode());
- return regionIdFromAbsoluteLocation(*canvas, touch.absoluteLocation());
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698