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

Side by Side 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 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 #include "HitTestCanvasResult.h"
6
7 namespace blink {
8
9 HitTestCanvasResult::HitTestCanvasResult(String id, Member<Element> control)
10 : m_id(id), m_control(control)
11 {
12
13 }
14
15 String HitTestCanvasResult::getId() const
16 {
17 return m_id;
18 }
19
20 Element* HitTestCanvasResult::getControl() const
21 {
22 return m_control.get();
23 };
24
25 DEFINE_TRACE(HitTestCanvasResult)
26 {
27 visitor->trace(m_control);
28 }
29
30 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698