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

Unified Diff: components/spellcheck/common/spellcheck_result.h

Issue 1884583003: Create a spellcheck component that will allow any embedder to reuse common functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewers' comments. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/spellcheck/common/spellcheck_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/common/spellcheck_result.h
diff --git a/chrome/common/spellcheck_result.h b/components/spellcheck/common/spellcheck_result.h
similarity index 84%
rename from chrome/common/spellcheck_result.h
rename to components/spellcheck/common/spellcheck_result.h
index 33ff5d48bd2a7310d0697ef1c175a97287a105ff..c81ceb17833c9e0d04102087633a489a0ccaecdf 100644
--- a/chrome/common/spellcheck_result.h
+++ b/components/spellcheck/common/spellcheck_result.h
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_SPELLCHECK_RESULT_H_
-#define CHROME_COMMON_SPELLCHECK_RESULT_H_
+#ifndef COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_RESULT_H_
+#define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_RESULT_H_
#include <stdint.h>
#include "base/strings/string16.h"
+namespace spellcheck {
+
// This class mirrors blink::WebTextCheckingResult which holds a
// misspelled range inside the checked text. It also contains a
// possible replacement of the misspelling if it is available.
@@ -40,4 +42,6 @@ struct SpellCheckResult {
uint32_t hash;
};
-#endif // CHROME_COMMON_SPELLCHECK_RESULT_H_
+} // namespace spellcheck
+
+#endif // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_RESULT_H_
« no previous file with comments | « components/spellcheck/common/spellcheck_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698