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

Side by Side Diff: Source/core/html/canvas/HitRegion.h

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month 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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/HitRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698