Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1888)

Unified Diff: chrome/common/extensions/docs/extensions/browserAction.html

Issue 10789026: Add browserAction.enable/disable as alias for pageAction.show/hide. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/extensions/browserAction.html
diff --git a/chrome/common/extensions/docs/extensions/browserAction.html b/chrome/common/extensions/docs/extensions/browserAction.html
index 6ef23819db3c0bfcfdbdef01f79b597c675fd2d0..f7f1ac5d1e4a60a8dd02332d640f4758caed274d 100644
--- a/chrome/common/extensions/docs/extensions/browserAction.html
+++ b/chrome/common/extensions/docs/extensions/browserAction.html
@@ -225,6 +225,10 @@
<a href="#global-methods">Methods</a>
<ol>
<li>
+ <a href="#method-disable">disable</a>
+ </li><li>
+ <a href="#method-enable">enable</a>
+ </li><li>
<a href="#method-getBadgeBackgroundColor">getBadgeBackgroundColor</a>
</li><li>
<a href="#method-getBadgeText">getBadgeText</a>
@@ -426,6 +430,94 @@ For other examples and for help in viewing the source code, see
<h3>Methods</h3>
<!-- iterates over all functions -->
<div class="apiItem">
+ <a name="method-disable"></a> <!-- method-anchor -->
+ <h4>disable</h4>
+ <div class="summary">
+ <!-- Note: intentionally longer 80 columns -->
+ <span>chrome.browserAction.disable</span>(<span class="optional"><span>integer</span>
+ <var><span>tabId</span></var></span>)</div>
+ <div class="description">
+ <p>Disables the browser action for a tab.</p>
+ <!-- PARAMETERS -->
+ <h4>Parameters</h4>
+ <dl>
+ <div>
+ <div>
+ <dt>
+ <var>tabId</var>
+ <em>
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional">optional</span>
+ <span id="typeTemplate">
+ <span>
+ <span>integer</span>
+ </span>
+ </span>
+ )
+ </div>
+ </em>
+ </dt>
+ <dd>The id of the tab for which you want to modify the browser action.</dd>
+ <!-- OBJECT PROPERTIES -->
+ <!-- OBJECT METHODS -->
+ <!-- OBJECT EVENT FIELDS -->
+ <!-- FUNCTION PARAMETERS -->
+ </div>
+ </div>
+ </dl>
+ <!-- RETURNS -->
+ <dl>
+ </dl>
+ <!-- CALLBACK -->
+ <!-- MIN_VERSION -->
+ </div> <!-- /description -->
+ </div><div class="apiItem">
+ <a name="method-enable"></a> <!-- method-anchor -->
+ <h4>enable</h4>
+ <div class="summary">
+ <!-- Note: intentionally longer 80 columns -->
+ <span>chrome.browserAction.enable</span>(<span class="optional"><span>integer</span>
+ <var><span>tabId</span></var></span>)</div>
+ <div class="description">
+ <p>Enables the browser action for a tab. By default, browser actions are enabled.</p>
+ <!-- PARAMETERS -->
+ <h4>Parameters</h4>
+ <dl>
+ <div>
+ <div>
+ <dt>
+ <var>tabId</var>
+ <em>
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional">optional</span>
+ <span id="typeTemplate">
+ <span>
+ <span>integer</span>
+ </span>
+ </span>
+ )
+ </div>
+ </em>
+ </dt>
+ <dd>The id of the tab for which you want to modify the browser action.</dd>
+ <!-- OBJECT PROPERTIES -->
+ <!-- OBJECT METHODS -->
+ <!-- OBJECT EVENT FIELDS -->
+ <!-- FUNCTION PARAMETERS -->
+ </div>
+ </div>
+ </dl>
+ <!-- RETURNS -->
+ <dl>
+ </dl>
+ <!-- CALLBACK -->
+ <!-- MIN_VERSION -->
+ </div> <!-- /description -->
+ </div><div class="apiItem">
<a name="method-getBadgeBackgroundColor"></a> <!-- method-anchor -->
<h4>getBadgeBackgroundColor</h4>
<div class="summary">
« no previous file with comments | « chrome/common/extensions/docs/apps/experimental.socket.html ('k') | chrome/common/extensions/docs/extensions/debugger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698