OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Initialize the internal resources if we need to initialize it. | 74 // Initialize the internal resources if we need to initialize it. |
75 // Initializing this object may take long time. To prevent from hurting | 75 // Initializing this object may take long time. To prevent from hurting |
76 // the performance of test_shell, we initialize this object when | 76 // the performance of test_shell, we initialize this object when |
77 // SpellCheckWord() is called for the first time. | 77 // SpellCheckWord() is called for the first time. |
78 // To be compliant with SpellCheck:InitializeIfNeeded(), this function | 78 // To be compliant with SpellCheck:InitializeIfNeeded(), this function |
79 // returns true if this object is downloading a dictionary, otherwise | 79 // returns true if this object is downloading a dictionary, otherwise |
80 // it returns false. | 80 // it returns false. |
81 bool initializeIfNeeded(); | 81 bool initializeIfNeeded(); |
82 | 82 |
83 // A table that consists of misspelled words. | 83 // A table that consists of misspelled words. |
84 std::vector<string16> m_misspelledWords; | 84 std::vector<base::string16> m_misspelledWords; |
85 | 85 |
86 // A flag representing whether or not this object is initialized. | 86 // A flag representing whether or not this object is initialized. |
87 bool m_initialized; | 87 bool m_initialized; |
88 }; | 88 }; |
89 | 89 |
90 } | 90 } |
91 | 91 |
92 #endif // MockSpellCheck_h | 92 #endif // MockSpellCheck_h |
OLD | NEW |