OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 TextMatchMarkerListImpl_h | 5 #ifndef TextMatchMarkerListImpl_h |
6 #define TextMatchMarkerListImpl_h | 6 #define TextMatchMarkerListImpl_h |
7 | 7 |
8 #include "core/editing/markers/DocumentMarkerList.h" | 8 #include "core/editing/markers/DocumentMarkerList.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 21 matching lines...) Expand all Loading... |
32 unsigned old_length, | 32 unsigned old_length, |
33 unsigned new_length) final; | 33 unsigned new_length) final; |
34 DECLARE_VIRTUAL_TRACE(); | 34 DECLARE_VIRTUAL_TRACE(); |
35 | 35 |
36 private: | 36 private: |
37 HeapVector<Member<DocumentMarker>> markers_; | 37 HeapVector<Member<DocumentMarker>> markers_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerListImpl); | 39 DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerListImpl); |
40 }; | 40 }; |
41 | 41 |
| 42 DEFINE_TYPE_CASTS(TextMatchMarkerListImpl, |
| 43 DocumentMarkerList, |
| 44 list, |
| 45 list->MarkerType() == DocumentMarker::kTextMatch, |
| 46 list.MarkerType() == DocumentMarker::kTextMatch); |
| 47 |
42 } // namespace blink | 48 } // namespace blink |
43 | 49 |
44 #endif // TextMatchMarkerListImpl_h | 50 #endif // TextMatchMarkerListImpl_h |
OLD | NEW |