d6701ff435
* feat(extensions): implement chrome.i18n API * refactor(extensions): use forward declaration for ScriptExecutor * fix(extensions): add message filter to handle i18n GetMessageBundle * test(extensions): add chrome.i18n tests * fix(extensions): message filter lint error * fix: remove exclusive test * fix(extensions): format api feature arrays Co-Authored-By: Jeremy Apthorp <nornagon@nornagon.net> * fix(extensions): uncomment chrome.i18n usage in old extensions test Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
20 lines
685 B
C++
20 lines
685 B
C++
// Copyright (c) 2020 Samuel Maddock <sam@samuelmaddock.com>.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SHELL_BROWSER_EXTENSIONS_API_I18N_I18N_API_H_
|
|
#define SHELL_BROWSER_EXTENSIONS_API_I18N_I18N_API_H_
|
|
|
|
#include "extensions/browser/extension_function.h"
|
|
|
|
namespace extensions {
|
|
|
|
class I18nGetAcceptLanguagesFunction : public ExtensionFunction {
|
|
~I18nGetAcceptLanguagesFunction() override {}
|
|
ResponseAction Run() override;
|
|
DECLARE_EXTENSION_FUNCTION("i18n.getAcceptLanguages", I18N_GETACCEPTLANGUAGES)
|
|
};
|
|
|
|
} // namespace extensions
|
|
|
|
#endif // SHELL_BROWSER_EXTENSIONS_API_I18N_I18N_API_H_
|