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

Side by Side Diff: sky/engine/core/dom/DocumentMarkerController.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 /* 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void shiftMarkers(Node*, unsigned startOffset, int delta); 83 void shiftMarkers(Node*, unsigned startOffset, int delta);
84 void setMarkersActive(Range*, bool); 84 void setMarkersActive(Range*, bool);
85 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; 85 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ;
86 86
87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType); 87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType);
88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers()); 88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers());
89 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes); 89 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes);
90 DocumentMarkerVector markers(); 90 DocumentMarkerVector markers();
91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); 91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType);
92 92
93 void trace(Visitor*);
94
95 #ifndef NDEBUG 93 #ifndef NDEBUG
96 void showMarkers() const; 94 void showMarkers() const;
97 #endif 95 #endif
98 96
99 private: 97 private:
100 void addMarker(Node*, const DocumentMarker&); 98 void addMarker(Node*, const DocumentMarker&);
101 99
102 typedef Vector<OwnPtr<RenderedDocumentMarker> > MarkerList; 100 typedef Vector<OwnPtr<RenderedDocumentMarker> > MarkerList;
103 typedef Vector<OwnPtr<MarkerList>, DocumentMarker::MarkerTypeIndexesCount> M arkerLists; 101 typedef Vector<OwnPtr<MarkerList>, DocumentMarker::MarkerTypeIndexesCount> M arkerLists;
104 typedef HashMap<RawPtr<const Node>, OwnPtr<MarkerLists> > MarkerMap; 102 typedef HashMap<RawPtr<const Node>, OwnPtr<MarkerLists> > MarkerMap;
105 void mergeOverlapping(MarkerList*, DocumentMarker&); 103 void mergeOverlapping(MarkerList*, DocumentMarker&);
106 bool possiblyHasMarkers(DocumentMarker::MarkerTypes); 104 bool possiblyHasMarkers(DocumentMarker::MarkerTypes);
107 void removeMarkersFromList(MarkerMap::iterator, DocumentMarker::MarkerTypes) ; 105 void removeMarkersFromList(MarkerMap::iterator, DocumentMarker::MarkerTypes) ;
108 106
109 MarkerMap m_markers; 107 MarkerMap m_markers;
110 // Provide a quick way to determine whether a particular marker type is abse nt without going through the map. 108 // Provide a quick way to determine whether a particular marker type is abse nt without going through the map.
111 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; 109 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes;
112 }; 110 };
113 111
114 } // namespace blink 112 } // namespace blink
115 113
116 #ifndef NDEBUG 114 #ifndef NDEBUG
117 void showDocumentMarkers(const blink::DocumentMarkerController*); 115 void showDocumentMarkers(const blink::DocumentMarkerController*);
118 #endif 116 #endif
119 117
120 #endif // DocumentMarkerController_h 118 #endif // DocumentMarkerController_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentMarker.cpp ('k') | sky/engine/core/dom/DocumentMarkerController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698