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

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

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.h
diff --git a/third_party/WebKit/Source/core/layout/HitTestCanvasResult.h b/third_party/WebKit/Source/core/layout/HitTestCanvasResult.h
new file mode 100644
index 0000000000000000000000000000000000000000..09bc9485bb39cf073a48c349f89787852c5b5a79
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/HitTestCanvasResult.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef HitTestCanvasResult_h
+#define HitTestCanvasResult_h
+
+#include "core/dom/Element.h"
+
+namespace blink {
+
+class CORE_EXPORT HitTestCanvasResult final
+ : public GarbageCollectedFinalized<HitTestCanvasResult> {
+
+public:
+ static HitTestCanvasResult* create(String id, Member<Element> control)
+ {
+ return new HitTestCanvasResult(id, control);
+ }
+
+ String getId() const;
+ Element* getControl() const;
+
+ DECLARE_TRACE();
+
+private:
+ HitTestCanvasResult(String id, Member<Element> control);
+
+ String m_id;
+ Member<Element> m_control;
+};
+
+} // namespace blink
+
+#endif // HitTestCanvasResult_h

Powered by Google App Engine
This is Rietveld 408576698