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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 namespace { | 59 namespace { |
60 | 60 |
61 DocumentMarker::MarkerTypeIndex MarkerTypeToMarkerIndex(DocumentMarker::MarkerTy
pe type) | 61 DocumentMarker::MarkerTypeIndex MarkerTypeToMarkerIndex(DocumentMarker::MarkerTy
pe type) |
62 { | 62 { |
63 switch (type) { | 63 switch (type) { |
64 case DocumentMarker::Spelling: | 64 case DocumentMarker::Spelling: |
65 return DocumentMarker::SpellingMarkerIndex; | 65 return DocumentMarker::SpellingMarkerIndex; |
66 case DocumentMarker::Grammar: | 66 case DocumentMarker::Grammar: |
67 return DocumentMarker::GramarMarkerIndex; | 67 return DocumentMarker::GrammarMarkerIndex; |
68 case DocumentMarker::TextMatch: | 68 case DocumentMarker::TextMatch: |
69 return DocumentMarker::TextMatchMarkerIndex; | 69 return DocumentMarker::TextMatchMarkerIndex; |
70 case DocumentMarker::InvisibleSpellcheck: | 70 case DocumentMarker::InvisibleSpellcheck: |
71 return DocumentMarker::InvisibleSpellcheckMarkerIndex; | 71 return DocumentMarker::InvisibleSpellcheckMarkerIndex; |
72 case DocumentMarker::Composition: | 72 case DocumentMarker::Composition: |
73 return DocumentMarker::CompositionMarkerIndex; | 73 return DocumentMarker::CompositionMarkerIndex; |
74 } | 74 } |
75 | 75 |
76 ASSERT_NOT_REACHED(); | 76 ASSERT_NOT_REACHED(); |
77 return DocumentMarker::SpellingMarkerIndex; | 77 return DocumentMarker::SpellingMarkerIndex; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 742 |
743 } // namespace blink | 743 } // namespace blink |
744 | 744 |
745 #ifndef NDEBUG | 745 #ifndef NDEBUG |
746 void showDocumentMarkers(const blink::DocumentMarkerController* controller) | 746 void showDocumentMarkers(const blink::DocumentMarkerController* controller) |
747 { | 747 { |
748 if (controller) | 748 if (controller) |
749 controller->showMarkers(); | 749 controller->showMarkers(); |
750 } | 750 } |
751 #endif | 751 #endif |
OLD | NEW |