| 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 "platform/wtf/Noncopyable.h" |
| 13 #include "wtf/PassRefPtr.h" | 13 #include "platform/wtf/PassRefPtr.h" |
| 14 #include "wtf/RefPtr.h" | 14 #include "platform/wtf/RefPtr.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class HitRegion final : public GarbageCollectedFinalized<HitRegion> { | 18 class HitRegion final : public GarbageCollectedFinalized<HitRegion> { |
| 19 public: | 19 public: |
| 20 static HitRegion* Create(const Path& path, const HitRegionOptions& options) { | 20 static HitRegion* Create(const Path& path, const HitRegionOptions& options) { |
| 21 return new HitRegion(path, options); | 21 return new HitRegion(path, options); |
| 22 } | 22 } |
| 23 | 23 |
| 24 virtual ~HitRegion() {} | 24 virtual ~HitRegion() {} |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 HitRegionControlMap; | 74 HitRegionControlMap; |
| 75 | 75 |
| 76 HitRegionList hit_region_list_; | 76 HitRegionList hit_region_list_; |
| 77 HitRegionIdMap hit_region_id_map_; | 77 HitRegionIdMap hit_region_id_map_; |
| 78 HitRegionControlMap hit_region_control_map_; | 78 HitRegionControlMap hit_region_control_map_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace blink | 81 } // namespace blink |
| 82 | 82 |
| 83 #endif | 83 #endif |
| OLD | NEW |