Searched defs:misspelling (Results 1 - 6 of 6) sorted by relevance

/external/chromium_org/chrome/browser/spellchecker/
H A Dmisspelling_unittest.cc7 #include "chrome/browser/spellchecker/misspelling.h"
15 Misspelling misspelling; local
16 misspelling.context = base::ASCIIToUTF16("How doe sit know");
17 misspelling.location = 4;
18 misspelling.length = 7;
19 misspelling.timestamp = base::Time::FromJsTime(42);
20 misspelling.hash = 9001;
21 misspelling.suggestions.push_back(base::ASCIIToUTF16("does it"));
32 scoped_ptr<base::DictionaryValue> serialized(misspelling.Serialize());
37 Misspelling misspelling; local
[all...]
H A Dfeedback.cc8 // Each misspelling should be present in only one renderer process. The
9 // |Feedback| objects keeps track of misspelling-renderer relationship in the
12 // When the user adds a misspelling to their custom dictionary, all of the
101 const Misspelling& misspelling = misspelling_it->second; local
102 if (!misspelling.action.IsFinal())
105 text_[misspelling.GetMisspelledString()].erase(misspelling.hash);
117 const Misspelling& misspelling) {
119 misspellings_.find(misspelling.hash);
122 text_[existing_misspelling.GetMisspelledString()].erase(misspelling
116 AddMisspelling(int renderer_process_id, const Misspelling& misspelling) argument
[all...]
H A Dfeedback_unittest.cc21 // Hash identifier for a misspelling.
34 Misspelling misspelling; local
35 misspelling.hash = hash;
36 feedback_.AddMisspelling(renderer_process_id, misspelling);
42 // Should be able to retrieve misspelling after it's added.
110 // Should be able to check for misspelling existence.
231 Misspelling* misspelling = feedback_.GetMisspelling(*it); local
232 EXPECT_NE(static_cast<Misspelling*>(NULL), misspelling); local
233 EXPECT_TRUE(misspelling->hash >= kMisspellingHash &&
234 misspelling
[all...]
H A Dspelling_service_client.cc147 // * Misspelling - an object representing a misspelling region and its
151 // - suggestions (array of string) - the suggestions for the misspelling
197 // Retrieve the i-th misspelling region and put it to the given vector. When
200 base::DictionaryValue* misspelling = NULL; local
201 if (!misspellings->GetDictionary(i, &misspelling))
207 if (!misspelling->GetInteger("charStart", &start) ||
208 !misspelling->GetInteger("charLength", &length) ||
209 !misspelling->GetList("suggestions", &suggestions)) {
H A Dfeedback_sender.cc10 // misspelling-suggestion pair. If the spelling service identifies the same
11 // misspelling as already displayed to the user, then |FeedbackSender| reuses
13 // comparing misspelling offsets in text. Spelling service can return duplicates
17 // All feedback is initially pending. When a user acts upon a misspelling such
18 // that the misspelling is no longer displayed (red squiggly line goes away),
19 // then the feedback for this misspelling is finalized. All finalized feedback
132 // Returns true if the misspelling location is within text bounds.
182 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
185 if (!misspelling)
187 misspelling
193 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
214 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
223 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
234 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DTextCheckingHelper.cpp89 TextCheckingResult misspelling; local
90 misspelling.decoration = TextDecorationTypeSpelling;
91 misspelling.location = start + wordStart + misspellingLocation;
92 misspelling.length = misspellingLength;
93 misspelling.replacement = client.getAutoCorrectSuggestionForMisspelledWord(String(text + misspelling.location, misspelling.length));
94 results.append(misspelling);
266 // Remember first-encountered misspelling and its offset.
276 // Bail out if we're marking only the first misspelling, an
[all...]

Completed in 153 milliseconds