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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/HitRegion.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
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"
15 #include "wtf/PassRefPtr.h" 13 #include "wtf/PassRefPtr.h"
16 #include "wtf/RefPtr.h" 14 #include "wtf/RefPtr.h"
17 15
18 namespace blink { 16 namespace blink {
19 17
20 class HitRegion final : public GarbageCollectedFinalized<HitRegion> { 18 class HitRegion final : public GarbageCollectedFinalized<HitRegion> {
21 public: 19 public:
22 static HitRegion* create(const Path& path, const HitRegionOptions& options) 20 static HitRegion* create(const Path& path, const HitRegionOptions& options)
23 { 21 {
24 return new HitRegion(path, options); 22 return new HitRegion(path, options);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 typedef HeapHashMap<Member<const Element>, Member<HitRegion>> HitRegionContr olMap; 73 typedef HeapHashMap<Member<const Element>, Member<HitRegion>> HitRegionContr olMap;
76 74
77 HitRegionList m_hitRegionList; 75 HitRegionList m_hitRegionList;
78 HitRegionIdMap m_hitRegionIdMap; 76 HitRegionIdMap m_hitRegionIdMap;
79 HitRegionControlMap m_hitRegionControlMap; 77 HitRegionControlMap m_hitRegionControlMap;
80 }; 78 };
81 79
82 } // namespace blink 80 } // namespace blink
83 81
84 #endif 82 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698