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

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

Issue 1240663002: Canvas2d: Remove the updateAccessibility() method in HitRegion class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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" 13 #include "wtf/OwnPtr.h"
14 #include "wtf/PassOwnPtr.h" 14 #include "wtf/PassOwnPtr.h"
15 #include "wtf/PassRefPtr.h" 15 #include "wtf/PassRefPtr.h"
16 #include "wtf/RefPtr.h" 16 #include "wtf/RefPtr.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class HitRegion final : public RefCountedWillBeGarbageCollectedFinalized<HitRegi on> { 20 class HitRegion final : public RefCountedWillBeGarbageCollectedFinalized<HitRegi on> {
21 public: 21 public:
22 static PassRefPtrWillBeRawPtr<HitRegion> create(const Path& path, const HitR egionOptions& options) 22 static PassRefPtrWillBeRawPtr<HitRegion> create(const Path& path, const HitR egionOptions& options)
23 { 23 {
24 return adoptRefWillBeNoop(new HitRegion(path, options)); 24 return adoptRefWillBeNoop(new HitRegion(path, options));
25 } 25 }
26 26
27 virtual ~HitRegion() { } 27 virtual ~HitRegion() { }
28 28
29 void removePixels(const Path&); 29 void removePixels(const Path&);
30 void updateAccessibility(Element* canvas);
31 30
32 bool contains(const LayoutPoint&) const; 31 bool contains(const LayoutPoint&) const;
33 bool contains(const FloatPoint&) const; 32 bool contains(const FloatPoint&) const;
34 33
35 const String& id() const { return m_id; } 34 const String& id() const { return m_id; }
36 const Path& path() const { return m_path; } 35 const Path& path() const { return m_path; }
37 Element* control() const { return m_control.get(); } 36 Element* control() const { return m_control.get(); }
38 WindRule fillRule() const { return m_fillRule; } 37 WindRule fillRule() const { return m_fillRule; }
39 38
40 DECLARE_TRACE(); 39 DECLARE_TRACE();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi tRegion>> HitRegionControlMap; 78 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi tRegion>> HitRegionControlMap;
80 79
81 HitRegionList m_hitRegionList; 80 HitRegionList m_hitRegionList;
82 HitRegionIdMap m_hitRegionIdMap; 81 HitRegionIdMap m_hitRegionIdMap;
83 HitRegionControlMap m_hitRegionControlMap; 82 HitRegionControlMap m_hitRegionControlMap;
84 }; 83 };
85 84
86 } // namespace blink 85 } // namespace blink
87 86
88 #endif 87 #endif
OLDNEW
« no previous file with comments | « Source/modules/canvas2d/CanvasRenderingContext2D.cpp ('k') | Source/modules/canvas2d/HitRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698