OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING
S_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING
S_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING
S_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING
S_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 9 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" | 10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // ExtensionFunction overrides. | 86 // ExtensionFunction overrides. |
87 ResponseAction Run() override; | 87 ResponseAction Run() override; |
88 | 88 |
89 // SpellcheckCustomDictionary::Observer overrides. | 89 // SpellcheckCustomDictionary::Observer overrides. |
90 void OnCustomDictionaryLoaded() override; | 90 void OnCustomDictionaryLoaded() override; |
91 void OnCustomDictionaryChanged( | 91 void OnCustomDictionaryChanged( |
92 const SpellcheckCustomDictionary::Change& dictionary_change) override; | 92 const SpellcheckCustomDictionary::Change& dictionary_change) override; |
93 | 93 |
94 // Returns the list of words from the loaded custom dictionary. | 94 // Returns the list of words from the loaded custom dictionary. |
95 scoped_ptr<base::ListValue> GetSpellcheckWords() const; | 95 std::unique_ptr<base::ListValue> GetSpellcheckWords() const; |
96 | 96 |
97 private: | 97 private: |
98 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateGetSpellcheckWordsFunction); | 98 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateGetSpellcheckWordsFunction); |
99 }; | 99 }; |
100 | 100 |
101 // Implements the languageSettingsPrivate.addSpellcheckWord method. | 101 // Implements the languageSettingsPrivate.addSpellcheckWord method. |
102 class LanguageSettingsPrivateAddSpellcheckWordFunction | 102 class LanguageSettingsPrivateAddSpellcheckWordFunction |
103 : public UIThreadExtensionFunction { | 103 : public UIThreadExtensionFunction { |
104 public: | 104 public: |
105 LanguageSettingsPrivateAddSpellcheckWordFunction(); | 105 LanguageSettingsPrivateAddSpellcheckWordFunction(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // ExtensionFunction overrides. | 206 // ExtensionFunction overrides. |
207 ResponseAction Run() override; | 207 ResponseAction Run() override; |
208 | 208 |
209 private: | 209 private: |
210 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateRemoveInputMethodFunction); | 210 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateRemoveInputMethodFunction); |
211 }; | 211 }; |
212 | 212 |
213 } // namespace extensions | 213 } // namespace extensions |
214 | 214 |
215 #endif // CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETT
INGS_PRIVATE_API_H_ | 215 #endif // CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETT
INGS_PRIVATE_API_H_ |
OLD | NEW |