| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 7 * reserved. | 7 * reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 NOTREACHED(); | 66 NOTREACHED(); |
| 67 return DocumentMarker::kSpellingMarkerIndex; | 67 return DocumentMarker::kSpellingMarkerIndex; |
| 68 } | 68 } |
| 69 | 69 |
| 70 DocumentMarkerList* CreateListForType(DocumentMarker::MarkerType type) { | 70 DocumentMarkerList* CreateListForType(DocumentMarker::MarkerType type) { |
| 71 switch (type) { | 71 switch (type) { |
| 72 case DocumentMarker::kComposition: | 72 case DocumentMarker::kComposition: |
| 73 return new CompositionMarkerListImpl(); | 73 return new CompositionMarkerListImpl(); |
| 74 case DocumentMarker::kSpelling: | 74 case DocumentMarker::kSpelling: |
| 75 case DocumentMarker::kGrammar: | 75 case DocumentMarker::kGrammar: |
| 76 return new SpellCheckMarkerListImpl(); | 76 return new SpellCheckMarkerListImpl(type); |
| 77 default: | 77 default: |
| 78 return new GenericDocumentMarkerListImpl(); | 78 return new GenericDocumentMarkerListImpl(type); |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace | 82 } // namespace |
| 83 | 83 |
| 84 Member<DocumentMarkerList>& DocumentMarkerController::ListForType( | 84 Member<DocumentMarkerList>& DocumentMarkerController::ListForType( |
| 85 MarkerLists* marker_lists, | 85 MarkerLists* marker_lists, |
| 86 DocumentMarker::MarkerType type) { | 86 DocumentMarker::MarkerType type) { |
| 87 const size_t marker_list_index = MarkerTypeToMarkerIndex(type); | 87 const size_t marker_list_index = MarkerTypeToMarkerIndex(type); |
| 88 return (*marker_lists)[marker_list_index]; | 88 return (*marker_lists)[marker_list_index]; |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 } | 749 } |
| 750 | 750 |
| 751 } // namespace blink | 751 } // namespace blink |
| 752 | 752 |
| 753 #ifndef NDEBUG | 753 #ifndef NDEBUG |
| 754 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { | 754 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { |
| 755 if (controller) | 755 if (controller) |
| 756 controller->ShowMarkers(); | 756 controller->ShowMarkers(); |
| 757 } | 757 } |
| 758 #endif | 758 #endif |
| OLD | NEW |