OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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 = 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.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
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
...]
spelling_service_client.cc
154
// - misspellings (optional array of
Misspelling
)
155
// *
Misspelling
- an object representing a
misspelling
region and its
159
// - suggestions (array of string) - the suggestions for the
misspelling
197
// Retrieve the array of
Misspelling
objects. When the input text does not
205
// Retrieve the i-th
misspelling
region and put it to the given vector. When
208
DictionaryValue*
misspelling
= NULL;
local
209
if (!misspellings->GetDictionary(i, &
misspelling
))
215
if (!
misspelling
->GetInteger("charStart", &start) ||
216
!
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 147 milliseconds