| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 class MarkerRemoverPredicate final { | 45 class MarkerRemoverPredicate final { |
| 46 public: | 46 public: |
| 47 explicit MarkerRemoverPredicate(const Vector<String>& words); | 47 explicit MarkerRemoverPredicate(const Vector<String>& words); |
| 48 bool operator()(const DocumentMarker&, const Text&) const; | 48 bool operator()(const DocumentMarker&, const Text&) const; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 Vector<String> m_words; | 51 Vector<String> m_words; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class DocumentMarkerController final : public DummyBase<DocumentMarkerController
> { | 54 class DocumentMarkerController final { |
| 55 WTF_MAKE_NONCOPYABLE(DocumentMarkerController); WTF_MAKE_FAST_ALLOCATED_WILL
_BE_REMOVED; | 55 WTF_MAKE_NONCOPYABLE(DocumentMarkerController); WTF_MAKE_FAST_ALLOCATED; |
| 56 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentMarkerController); | 56 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentMarkerController); |
| 57 public: | 57 public: |
| 58 | 58 |
| 59 DocumentMarkerController(); | 59 DocumentMarkerController(); |
| 60 | 60 |
| 61 void clear(); | 61 void clear(); |
| 62 void addMarker(Range*, DocumentMarker::MarkerType); | 62 void addMarker(Range*, DocumentMarker::MarkerType); |
| 63 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
); | 63 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
); |
| 64 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
, uint32_t hash); | 64 void addMarker(Range*, DocumentMarker::MarkerType, const String& description
, uint32_t hash); |
| 65 void addTextMatchMarker(const Range*, bool activeMatch); | 65 void addTextMatchMarker(const Range*, bool activeMatch); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 111 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #ifndef NDEBUG | 116 #ifndef NDEBUG |
| 117 void showDocumentMarkers(const blink::DocumentMarkerController*); | 117 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 #endif // DocumentMarkerController_h | 120 #endif // DocumentMarkerController_h |
| OLD | NEW |