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

Side by Side Diff: Source/core/editing/TextCheckingHelper.h

Issue 806223002: Remove unused/unneeded code from core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 String textSubstring(unsigned pos, unsigned len = INT_MAX) const { return te xt().substring(pos, len); } 52 String textSubstring(unsigned pos, unsigned len = INT_MAX) const { return te xt().substring(pos, len); }
53 UChar textCharAt(int index) const { return text()[static_cast<unsigned>(inde x)]; } 53 UChar textCharAt(int index) const { return text()[static_cast<unsigned>(inde x)]; }
54 54
55 bool isEmpty() const; 55 bool isEmpty() const;
56 bool isTextEmpty() const { return text().isEmpty(); } 56 bool isTextEmpty() const { return text().isEmpty(); }
57 bool isRangeEmpty() const { return checkingStart() >= checkingEnd(); } 57 bool isRangeEmpty() const { return checkingStart() >= checkingEnd(); }
58 58
59 int checkingStart() const; 59 int checkingStart() const;
60 int checkingEnd() const; 60 int checkingEnd() const;
61 int checkingLength() const; 61 int checkingLength() const;
62 String checkingSubstring() const { return textSubstring(checkingStart(), che ckingLength()); }
63 62
64 bool checkingRangeCovers(int location, int length) const { return location < checkingEnd() && location + length > checkingStart(); } 63 bool checkingRangeCovers(int location, int length) const { return location < checkingEnd() && location + length > checkingStart(); }
65 PassRefPtrWillBeRawPtr<Range> paragraphRange() const; 64 PassRefPtrWillBeRawPtr<Range> paragraphRange() const;
66 PassRefPtrWillBeRawPtr<Range> checkingRange() const { return m_checkingRange ; } 65 PassRefPtrWillBeRawPtr<Range> checkingRange() const { return m_checkingRange ; }
67 66
68 private: 67 private:
69 void invalidateParagraphRangeValues(); 68 void invalidateParagraphRangeValues();
70 PassRefPtrWillBeRawPtr<Range> offsetAsRange() const; 69 PassRefPtrWillBeRawPtr<Range> offsetAsRange() const;
71 70
72 RefPtrWillBeMember<Range> m_checkingRange; 71 RefPtrWillBeMember<Range> m_checkingRange;
(...skipping 27 matching lines...) Expand all
100 bool unifiedTextCheckerEnabled() const; 99 bool unifiedTextCheckerEnabled() const;
101 }; 100 };
102 101
103 void checkTextOfParagraph(TextCheckerClient&, const String&, TextCheckingTypeMas k, Vector<TextCheckingResult>&); 102 void checkTextOfParagraph(TextCheckerClient&, const String&, TextCheckingTypeMas k, Vector<TextCheckingResult>&);
104 103
105 bool unifiedTextCheckerEnabled(const LocalFrame*); 104 bool unifiedTextCheckerEnabled(const LocalFrame*);
106 105
107 } // namespace blink 106 } // namespace blink
108 107
109 #endif // TextCheckingHelper_h 108 #endif // TextCheckingHelper_h
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698