OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef HitRegion_h | 5 #ifndef HitRegion_h |
6 #define HitRegion_h | 6 #define HitRegion_h |
7 | 7 |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "modules/canvas2d/HitRegionOptions.h" | 9 #include "modules/canvas2d/HitRegionOptions.h" |
10 #include "platform/graphics/Path.h" | 10 #include "platform/graphics/Path.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 #include "wtf/Noncopyable.h" | 12 #include "wtf/Noncopyable.h" |
| 13 #include "wtf/OwnPtr.h" |
| 14 #include "wtf/PassOwnPtr.h" |
13 #include "wtf/PassRefPtr.h" | 15 #include "wtf/PassRefPtr.h" |
14 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
15 | 17 |
16 namespace blink { | 18 namespace blink { |
17 | 19 |
18 class HitRegion final : public GarbageCollectedFinalized<HitRegion> { | 20 class HitRegion final : public GarbageCollectedFinalized<HitRegion> { |
19 public: | 21 public: |
20 static HitRegion* create(const Path& path, const HitRegionOptions& options) | 22 static HitRegion* create(const Path& path, const HitRegionOptions& options) |
21 { | 23 { |
22 return new HitRegion(path, options); | 24 return new HitRegion(path, options); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 typedef HeapHashMap<Member<const Element>, Member<HitRegion>> HitRegionContr
olMap; | 75 typedef HeapHashMap<Member<const Element>, Member<HitRegion>> HitRegionContr
olMap; |
74 | 76 |
75 HitRegionList m_hitRegionList; | 77 HitRegionList m_hitRegionList; |
76 HitRegionIdMap m_hitRegionIdMap; | 78 HitRegionIdMap m_hitRegionIdMap; |
77 HitRegionControlMap m_hitRegionControlMap; | 79 HitRegionControlMap m_hitRegionControlMap; |
78 }; | 80 }; |
79 | 81 |
80 } // namespace blink | 82 } // namespace blink |
81 | 83 |
82 #endif | 84 #endif |
OLD | NEW |