| Index: chrome/common/spellcheck_marker.h
|
| diff --git a/chrome/common/spellcheck_marker.h b/chrome/common/spellcheck_marker.h
|
| index 551f7dcd1cdac6410e05752195d7aece8f0a375c..3b04cadb298fe974f51ccb68da103cbd930114a5 100644
|
| --- a/chrome/common/spellcheck_marker.h
|
| +++ b/chrome/common/spellcheck_marker.h
|
| @@ -5,7 +5,20 @@
|
| #ifndef CHROME_COMMON_SPELLCHECK_MARKER_H_
|
| #define CHROME_COMMON_SPELLCHECK_MARKER_H_
|
|
|
| -struct SpellCheckMarker {
|
| +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(-1), offset(-1) {}
|
|
|
|
|