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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 1686263007: Tidy GrammarMarkerIndex spelling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarker.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698