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

Side by Side Diff: components/spellcheck/browser/word_trimmer.h

Issue 2159283003: [WIP][DO NOT LAND] Componentize spellcheck Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
6 #define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 14 matching lines...) Expand all
25 // base::string16 trimmed = TrimWords(&start, end, text, keep); 25 // base::string16 trimmed = TrimWords(&start, end, text, keep);
26 // DCHECK(trimmed == base::ASCIIToUTF16("two three four five six seven")); 26 // DCHECK(trimmed == base::ASCIIToUTF16("two three four five six seven"));
27 // DCHECK(start == 10); 27 // DCHECK(start == 10);
28 // 28 //
29 base::string16 TrimWords(size_t* start, 29 base::string16 TrimWords(size_t* start,
30 size_t end, 30 size_t end,
31 const base::string16& text, 31 const base::string16& text,
32 size_t keep); 32 size_t keep);
33 33
34 #endif // CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_ 34 #endif // CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
OLDNEW
« no previous file with comments | « components/spellcheck/browser/spelling_service_client.cc ('k') | components/spellcheck/browser/word_trimmer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698