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

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

Issue 2177023002: Remove spellchecker feedback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 4 years, 4 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
Index: components/spellcheck/common/spellcheck_marker.h
diff --git a/components/spellcheck/common/spellcheck_marker.h b/components/spellcheck/common/spellcheck_marker.h
deleted file mode 100644
index c30803ee5b815e219ed976af5a1259888b9961eb..0000000000000000000000000000000000000000
--- a/components/spellcheck/common/spellcheck_marker.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_MARKER_H_
-#define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_MARKER_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-class SpellCheckMarker {
- public:
- // A predicate to test spellcheck marker validity.
- class IsValidPredicate {
- public:
- typedef SpellCheckMarker argument_type;
- explicit IsValidPredicate(size_t text_length) : text_length_(text_length) {}
- bool operator()(const SpellCheckMarker& marker) const {
- return marker.offset < text_length_;
- }
-
- private:
- size_t text_length_;
- };
-
- // IPC requires a default constructor.
- SpellCheckMarker() : hash(0xFFFFFFFF), offset(UINT32_MAX) {}
-
- SpellCheckMarker(uint32_t hash, uint32_t offset)
- : hash(hash), offset(offset) {}
-
- uint32_t hash;
- // Note: we use uint32_t instead of size_t because this struct is sent over
- // IPC which could span 32 & 64 bit processes. This is fine since the offset
- // shouldn't exceed UINT32_MAX even on 64 bit builds.
- uint32_t offset;
-};
-
-#endif // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_MARKER_H_
« no previous file with comments | « components/spellcheck/common/spellcheck_common.h ('k') | components/spellcheck/common/spellcheck_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698