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

  /external/chromium_org/chrome/browser/spellchecker/
misspelling.h 21 // Misspelling misspelling.
22 // misspelling.context = ASCIIToUTF16("Helllo world");
23 // misspelling.location = 0;
24 // misspelling.length = 6;
25 // misspelling.suggestions =
27 // misspelling.hash = GenerateRandomHash();
28 // misspelling.action.type = SpellcheckAction::TYPE_SELECT;
29 // misspelling.action.index = 0;
30 // Process(misspelling.Serialize())
    [all...]
misspelling.cc 5 // The |Misspelling| object stores the misspelling, a spellcheck suggestion for
6 // it, and user's action on it. The misspelling is stored as |context|,
10 #include "chrome/browser/spellchecker/misspelling.h"
34 Misspelling::Misspelling()
38 Misspelling::Misspelling(const base::string16& context,
51 Misspelling::~Misspelling() {
    [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 19 // Hash identifier for a misspelling.
32 Misspelling misspelling; local
33 misspelling.hash = hash;
34 feedback_.AddMisspelling(renderer_process_id, misspelling);
40 // Should be able to retrieve misspelling after it's added.
44 Misspelling* result = feedback_.GetMisspelling(kMisspellingHash);
45 EXPECT_NE(static_cast<Misspelling*>(NULL), result);
57 Misspelling* removed_misspelling =
59 EXPECT_NE(static_cast<Misspelling*>(NULL), removed_misspelling)
229 Misspelling* misspelling = feedback_.GetMisspelling(*it); local
230 EXPECT_NE(static_cast<Misspelling*>(NULL), 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...]
misspelling_unittest.cc 5 // Unit tests for |Misspelling| object.
7 #include "chrome/browser/spellchecker/misspelling.h"
15 Misspelling misspelling; local
16 misspelling.context = 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(ASCIIToUTF16("does it"))
37 Misspelling misspelling; 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_sender.h 23 #include "chrome/browser/spellchecker/misspelling.h"
63 // misspelling identified by |hash|.
66 // Records that user added the misspelling identified by |hash| to the
70 // Records that user right-clicked on the misspelling identified by |hash|,
75 // misspelling identified by |hash| to string |correction|, which is not in
79 // Records that user has the misspelling in the custom dictionary. The user
80 // will never see the spellcheck suggestions for the misspelling.
129 void SendFeedback(const std::vector<Misspelling>& feedback_data,
144 // Misspelling counter used to generate unique hash identifier for each
145 // misspelling
    [all...]

Completed in 178 milliseconds