| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MockSpellCheck_h | 5 #ifndef MockSpellCheck_h |
| 6 #define MockSpellCheck_h | 6 #define MockSpellCheck_h |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "third_party/WebKit/public/platform/WebNonCopyable.h" | 10 #include "third_party/WebKit/public/platform/WebNonCopyable.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Initialize the internal resources if we need to initialize it. | 49 // Initialize the internal resources if we need to initialize it. |
| 50 // Initializing this object may take long time. To prevent from hurting | 50 // Initializing this object may take long time. To prevent from hurting |
| 51 // the performance of test_shell, we initialize this object when | 51 // the performance of test_shell, we initialize this object when |
| 52 // SpellCheckWord() is called for the first time. | 52 // SpellCheckWord() is called for the first time. |
| 53 // To be compliant with SpellCheck:InitializeIfNeeded(), this function | 53 // To be compliant with SpellCheck:InitializeIfNeeded(), this function |
| 54 // returns true if this object is downloading a dictionary, otherwise | 54 // returns true if this object is downloading a dictionary, otherwise |
| 55 // it returns false. | 55 // it returns false. |
| 56 bool initializeIfNeeded(); | 56 bool initializeIfNeeded(); |
| 57 | 57 |
| 58 // A table that consists of misspelled words. | 58 // A table that consists of misspelled words. |
| 59 std::vector<string16> m_misspelledWords; | 59 std::vector<base::string16> m_misspelledWords; |
| 60 | 60 |
| 61 // A flag representing whether or not this object is initialized. | 61 // A flag representing whether or not this object is initialized. |
| 62 bool m_initialized; | 62 bool m_initialized; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 #endif // MockSpellCheck_h | 67 #endif // MockSpellCheck_h |
| OLD | NEW |