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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HitTestCanvasResult_h
6 #define HitTestCanvasResult_h
7
8 #include "core/dom/Element.h"
9
10 namespace blink {
11
12 class CORE_EXPORT HitTestCanvasResult final
13 : public GarbageCollectedFinalized<HitTestCanvasResult> {
14
15 public:
16 static HitTestCanvasResult* create(String id, Member<Element> control)
17 {
18 return new HitTestCanvasResult(id, control);
19 }
20
21 String getId() const;
22 Element* getControl() const;
23
24 DECLARE_TRACE();
25
26 private:
27 HitTestCanvasResult(String id, Member<Element> control);
28
29 String m_id;
30 Member<Element> m_control;
31 };
32
33 } // namespace blink
34
35 #endif // HitTestCanvasResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698