diff options
author | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:56:28 +0000 |
---|---|---|
committer | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:56:28 +0000 |
commit | 198bcfe93dd75609fd50caca76f702b28934f48c (patch) | |
tree | 5fb68a530c89540fd43ecfed4bf8b69bf75ad3d9 /chrome/browser/extensions/extension_i18n_api.h | |
parent | bcc9ae958d2f957a8deb766f994b3039758e4ee6 (diff) | |
download | chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.zip chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.tar.gz chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.tar.bz2 |
Added chrome.i18n extension API.
The API proposal doc is
http://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/i18n-api
This CL only adds the getter of accept languages:
chrome.i18n.getAcceptLanguages().
The setter of accept languages will be added in a separate CL.
BUG=http://crbug.com/14574
TEST=TEST=There is an extension in chrome\test\data\extensions\samples\i18n.
Load this extension. It creates a toolstrip button. Click this button, you
should get chrome's accept languages.
Review URL: http://codereview.chromium.org/174116
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_i18n_api.h')
-rw-r--r-- | chrome/browser/extensions/extension_i18n_api.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_i18n_api.h b/chrome/browser/extensions/extension_i18n_api.h new file mode 100644 index 0000000..8fc18ac --- /dev/null +++ b/chrome/browser/extensions/extension_i18n_api.h @@ -0,0 +1,18 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_I18N_API_H__ +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_I18N_API_H__ + +#include "chrome/browser/extensions/extension_function.h" + +namespace extension_i18n_api_functions { + extern const char kGetAcceptLanguagesFunction[]; +}; // namespace extension_i18n_api_functions + +class GetAcceptLanguagesFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; + +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_I18N_API_H__ |