| 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 "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
| 9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
| 10 #include "core/html/canvas/HitRegionOptions.h" | 10 #include "core/html/canvas/HitRegionOptions.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 HitRegion* getHitRegionByControl(Element*) const; | 66 HitRegion* getHitRegionByControl(Element*) const; |
| 67 HitRegion* getHitRegionAtPoint(const LayoutPoint&) const; | 67 HitRegion* getHitRegionAtPoint(const LayoutPoint&) const; |
| 68 | 68 |
| 69 unsigned getHitRegionsCount() const; | 69 unsigned getHitRegionsCount() const; |
| 70 | 70 |
| 71 void trace(Visitor*); | 71 void trace(Visitor*); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 HitRegionManager() { } | 74 HitRegionManager() { } |
| 75 | 75 |
| 76 typedef WillBeHeapListHashSet<RefPtrWillBeMember<HitRegion> > HitRegionList; | 76 typedef WillBeHeapListHashSet<RefPtrWillBeMember<HitRegion>> HitRegionList; |
| 77 typedef HitRegionList::const_reverse_iterator HitRegionIterator; | 77 typedef HitRegionList::const_reverse_iterator HitRegionIterator; |
| 78 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<HitRegion> > HitRegionI
dMap; | 78 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<HitRegion>> HitRegionId
Map; |
| 79 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi
tRegion> > HitRegionControlMap; | 79 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi
tRegion>> HitRegionControlMap; |
| 80 | 80 |
| 81 HitRegionList m_hitRegionList; | 81 HitRegionList m_hitRegionList; |
| 82 HitRegionIdMap m_hitRegionIdMap; | 82 HitRegionIdMap m_hitRegionIdMap; |
| 83 HitRegionControlMap m_hitRegionControlMap; | 83 HitRegionControlMap m_hitRegionControlMap; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif | 88 #endif |
| OLD | NEW |