HomeSort by relevance Sort by last modified time
    Searched refs:misspelling (Results 1 - 7 of 7) sorted by null

  /external/chromium_org/chrome/browser/spellchecker/
misspelling_unittest.cc 5 // Unit tests for |Misspelling| object.
7 #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"))
37 Misspelling misspelling; local
    [all...]
feedback.cc 6 // |misspellings_|. This is a map from uint32 hashes to |Misspelling| objects.
8 // 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
13 // |Misspelling| objects with the same misspelled string are updated. The
32 Misspelling* Feedback::GetMisspelling(uint32 hash) {
69 std::vector<Misspelling> Feedback::GetMisspellingsInRenderer(
71 std::vector<Misspelling> misspellings_in_renderer;
101 const Misspelling& misspelling = misspelling_it->second local
    [all...]
feedback_sender.cc 10 // 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
76 Misspelling BuildFeedback(const SpellCheckResult& result,
83 return Misspelling(context,
92 const std::vector<Misspelling>& suggestions,
95 for (std::vector<Misspelling>::const_iterator suggestion_it
182 Misspelling* misspelling = feedback_.GetMisspelling(hash); local
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...]
feedback.h 8 // Stores feedback for the spelling service in |Misspelling| objects. Each
9 // |Misspelling| object is identified by a |hash| and corresponds to a document
19 #include "chrome/browser/spellchecker/misspelling.h"
25 // feedback.AddMisspelling(renderer_process_id, Misspelling(
37 // Returns the misspelling identified by |hash|. Returns NULL if there's no
38 // misspelling identified by |hash|. Retains the ownership of the result. The
39 // caller should not modify the hash in the returned misspelling.
40 Misspelling* GetMisspelling(uint32 hash);
54 std::vector<Misspelling> GetMisspellingsInRenderer(
61 // Returns true if there's a misspelling with |hash| identifier
    [all...]
feedback_unittest.cc 21 // 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.
46 Misspelling* result = feedback_.GetMisspelling(kMisspellingHash);
47 EXPECT_NE(static_cast<Misspelling*>(NULL), result);
59 Misspelling* removed_misspelling =
61 EXPECT_NE(static_cast<Misspelling*>(NULL), removed_misspelling)
231 Misspelling* misspelling = feedback_.GetMisspelling(*it); local
232 EXPECT_NE(static_cast<Misspelling*>(NULL), misspelling); local
    [all...]
spelling_service_client.cc 146 // - misspellings (optional array of Misspelling)
147 // * Misspelling - an object representing a misspelling region and its
151 // - suggestions (array of string) - the suggestions for the misspelling
189 // Retrieve the array of Misspelling objects. When the input text does not
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) |
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/editing/
TextCheckingHelper.cpp 89 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, and not all instances
    [all...]

Completed in 629 milliseconds