Index: third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp |
diff --git a/third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp b/third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47bd2dd488348f54b258d65d18787f72b6e030f9 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 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 "HitTestCanvasResult.h" |
+ |
+namespace blink { |
+ |
+HitTestCanvasResult::HitTestCanvasResult(String id, Member<Element> control) |
+ : m_id(id), m_control(control) |
+{ |
+ |
+} |
+ |
+String HitTestCanvasResult::getId() const |
+{ |
+ return m_id; |
+} |
+ |
+Element* HitTestCanvasResult::getControl() const |
+{ |
+ return m_control.get(); |
+}; |
+ |
+DEFINE_TRACE(HitTestCanvasResult) |
+{ |
+ visitor->trace(m_control); |
+} |
+ |
+} // namespace blink |