diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 18:06:47 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-01 18:06:47 +0000 |
commit | ec9ac0df1c02dc01550b1020ef7e74bd795a2008 (patch) | |
tree | 818d466044a5b587157b02c384e2b84a505415aa /chrome/browser/extensions/extension_browser_actions_api.h | |
parent | 4d9ae4ab9dd6d4f27c5cef5481f41979b3d58d1b (diff) | |
download | chromium_src-ec9ac0df1c02dc01550b1020ef7e74bd795a2008.zip chromium_src-ec9ac0df1c02dc01550b1020ef7e74bd795a2008.tar.gz chromium_src-ec9ac0df1c02dc01550b1020ef7e74bd795a2008.tar.bz2 |
Add chrome.browserAction.setName and .setIcon.
BUG=23379
TEST=Load the print_browser_action extension from the samples test dir and click it. The icon and name should update.
Review URL: http://codereview.chromium.org/242081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browser_actions_api.h')
-rwxr-xr-x | chrome/browser/extensions/extension_browser_actions_api.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browser_actions_api.h b/chrome/browser/extensions/extension_browser_actions_api.h new file mode 100755 index 0000000..91f2eb0 --- /dev/null +++ b/chrome/browser/extensions/extension_browser_actions_api.h @@ -0,0 +1,26 @@ +// 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_BROWSER_ACTIONS_API_H_ +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_ACTIONS_API_H_ + +#include "chrome/browser/extensions/extension_function.h" + +class BrowserActionSetNameFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; + +class BrowserActionSetIconFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; + +namespace extension_browser_actions_api_constants { + +// Function names. +extern const char kSetNameFunction[]; +extern const char kSetIconFunction[]; + +}; // namespace extension_browser_actions_api_constants + +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_ACTIONS_API_H_ |