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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp

Issue 2229743003: add HitTestCanvasResult Class instend of std::pair<Element*, String> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add HitTestCanvasResult Class instend of std::pair<Element*, String> 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698