summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/tabs.html
Commit message (Collapse)AuthorAgeFilesLines
* Update tabs.onActiveChanged docs to indicate the URL may not be set.jstritar@chromium.org2012-01-191-1/+1
| | | | | | | | | | BUG=81298 TEST=none Review URL: http://codereview.chromium.org/9249034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118306 0039d316-1c4b-4281-b951-d872f2087c98
* Query the current window with chrome.tabs.query using -1.jstritar@chromium.org2012-01-101-1/+1
| | | | | | | | | | | | This makes querying for tabs in the current window easier by requiring less callbacks. BUG=108942 TEST=ExtensionApiTest.TabQuery Review URL: http://codereview.chromium.org/9162002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117107 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: bring generated messages in sync with json schemas.pfeldman@chromium.org2011-12-261-2/+2
| | | | | | | | TBR=mtytel,calamity,aa Review URL: http://codereview.chromium.org/9042002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115783 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some mixed content warnings when accessing extension docsaa@chromium.org2011-12-061-5/+5
| | | | | | | | over SSL. Review URL: http://codereview.chromium.org/8805020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113135 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few permissions to the optional permission whitelist.jstritar@chromium.org2011-12-021-10/+10
| | | | | | | | | | | | | | | | | Whitelists the following permissions: - contentSettings - pageCapture - webNavigation - webRequest - webRequestBlocking BUG=105630 TEST=existing Review URL: http://codereview.chromium.org/8770051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112821 0039d316-1c4b-4281-b951-d872f2087c98
* Rename chrome.experimental.webRequest to chrome.webRequestbattre@chromium.org2011-11-301-10/+10
| | | | | | | | | | | Note that this CL also introduces a new permission webRequestBlocking that is required in addition to webRequest if you want to use blocking request handlers. BUG=60101 TEST=no Review URL: http://codereview.chromium.org/8662010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112181 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a minimal `meta` description to extension API pages.mkwst@chromium.org2011-11-281-1/+1
| | | | | | | | | | | | | The actual changes here are to `.../template/api_template.html` and `.../js/api_page_generator.js`. Everything else is just generated from those two files. As a drive-by, this also changes `api_page_generator.js` to allow for more than one `prerenderjs` block in each template. Each should be evaluate in the order in which they're discovered on the page. BUG=105105 TEST= Review URL: http://codereview.chromium.org/8638011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111688 0039d316-1c4b-4281-b951-d872f2087c98
* Updated docs to link to Stack Overflow as a support channel.smus@chromium.org2011-11-151-0/+3
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8510074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110186 0039d316-1c4b-4281-b951-d872f2087c98
* Show methods and events for types in table of contents for extension docs.bauerb@chromium.org2011-11-021-76/+134
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8380008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108304 0039d316-1c4b-4281-b951-d872f2087c98
* Move extension permissions API out of experimental.jstritar@chromium.org2011-10-141-0/+1
| | | | | | | | | BUG=84507 TEST=*Extension* Review URL: http://codereview.chromium.org/8277004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105491 0039d316-1c4b-4281-b951-d872f2087c98
* Extend chrome.tabs* API to support multiple tabs.jstritar@chromium.org2011-09-281-387/+1638
| | | | | | | | | | | | | | | | | | | | | | | | | This adds support for handling multiple tabs, including selecting, removing and moving many tabs at once. (Selecting is now called highlighting for backwards compatibility). The changes are outlined below. Adds: - 'highlighted' property to Tab, chrome.tabs.update - chrome.tabs.query for searching across tabs - chrome.tabs.highlight for selecting multiple tabs - chrome.tabs.onHighlightChanged for listening to multi-select events Modifies: - renames 'selected' to 'active' on Tab, chrome.tabs.create, chrome.tabs.update - renames onSelectionChanged to onActiveChanged - chrome.tabs.move to accept an array of tabs or a single tab - chrome.tabs.remove to accept an array of tabs or a single tab - deprecates chrome.tabs.getSelected in favor of chrome.tabs.query - deprecates chrome.tabs.getAllInWindow in favor of chrome.tabs.query BUG=81411 TEST=ExtensionApiTest.*Tab* Review URL: http://codereview.chromium.org/7731004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103084 0039d316-1c4b-4281-b951-d872f2087c98
* chrome.tabs.update now returns null Tab when no tabs permission.miket@chromium.org2011-09-281-2/+2
| | | | | | | | | | BUG=97674 TEST=added a test extension with permissions, enhanced an existing one. Review URL: http://codereview.chromium.org/7967021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103059 0039d316-1c4b-4281-b951-d872f2087c98
* Make chrome.tabs.update's tabId parameter optional.miket@chromium.org2011-09-221-6/+4
| | | | | | | | | | BUG=97330 TEST=added appropriate browser test Review URL: http://codereview.chromium.org/7981040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102235 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up extension API documentation.dcheng@chromium.org2011-09-141-1/+0
| | | | | | | | | | | | Remove unused experimental.idle API page and remove stray reference to the API documentation for chrome.idle from the "Implementation" submenu. BUG=none TEST=none Review URL: http://codereview.chromium.org/7872006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101120 0039d316-1c4b-4281-b951-d872f2087c98
* Update static tabs API documentation.mihaip@chromium.org2011-09-131-3/+5
| | | | | | | | | | | | As of r87870 remove and onRemoved don't need the tabs permission anymore (that updated the generated docs, but missed this paragraph). BUG=62107 R=asargent@chromium.org Review URL: http://codereview.chromium.org/7892019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100972 0039d316-1c4b-4281-b951-d872f2087c98
* * Implement new extension function chrome.tabs.reload.yosin@chromium.org2011-09-071-0/+338
| | | | | | | | | | | | | * Update documentation for chrome.tabs module. * Change TODO comment to TODO(who) by http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_tabs_module.cc?r1=88703&r2=89083 BUG=91618 TEST=unit test in browser_tests ExtensionApiTest.TabReload Review URL: http://codereview.chromium.org/7747039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99935 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unbalanced parenthesis in event handler docs template.mihaip@chromium.org2011-08-241-7/+7
| | | | | | | | | | BUG=94087 TEST=no R=smus@chromium.org Review URL: http://codereview.chromium.org/7718029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98074 0039d316-1c4b-4281-b951-d872f2087c98
* Fix verb tenses in extension API descriptions.tessamac@chromium.org2011-07-301-5/+5
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7520034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94806 0039d316-1c4b-4281-b951-d872f2087c98
* Don't require "tabs" permission for tabs.remove/onRemoved, since they just ↵mihaip@chromium.org2011-06-031-2/+2
| | | | | | | | | | | | | use tab IDs. Also fixes Windows line endings in background.html BUG=62107 TEST=no Review URL: http://codereview.chromium.org/6982050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87870 0039d316-1c4b-4281-b951-d872f2087c98
* Tweak captureVisibleTab description.kathyw@chromium.org2011-05-201-1/+1
| | | | | | | | TEST=none BUG=72523 Review URL: http://codereview.chromium.org/7038039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86112 0039d316-1c4b-4281-b951-d872f2087c98
* Reflect new restriction on tab.captureVisibleTab().kathyw@chromium.org2011-05-201-3/+3
| | | | | | | | TEST=none BUG=72523 Review URL: http://codereview.chromium.org/7004038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86101 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83452 (see crbug.com/80916) - Move jstemplate from chrome/third_party ↵thakis@chromium.org2011-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | to third_party. All third party libraries should be in third_party. The presubmit check complains about jstemplate's README.chromium being nonstandard; I will fix that in a follow-up. The interesting changes are to the .grd file and the .py file. BUG=none TEST=none Review URL: http://codereview.chromium.org/6901102 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/6905149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83632 0039d316-1c4b-4281-b951-d872f2087c98
* Move jstemplate from chrome/third_party to third_party.thakis@chromium.org2011-04-281-1/+1
| | | | | | | | | | | | | | | | All third party libraries should be in third_party. The presubmit check complains about jstemplate's README.chromium being nonstandard; I will fix that in a follow-up. The interesting changes are to the .grd file and the .py file. BUG=none TEST=none Review URL: http://codereview.chromium.org/6901102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83452 0039d316-1c4b-4281-b951-d872f2087c98
* Add support in the extension docs for webRequest event listeners.mpcomplete@chromium.org2011-04-201-28/+168
| | | | | | | | | | | These events are special in 2 ways: - Their addListener method can accept extra arguments beyond the callback. - Their callbacks can return a value (in the case of a blocking event), which is sent back to the browser. Review URL: http://codereview.chromium.org/6879027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82346 0039d316-1c4b-4281-b951-d872f2087c98
* Added pages for experimental DevTools/WebInspector APIcaseq@google.com2011-02-041-64/+1090
| | | | | | | | | | | | | | - Factor out methods & events to a separate template - Support methods & events nested within a type - Fix signature generation for event handlers with no arguments - Add DevTools extensions docs (in a separate schema) BUG=65605 TEST=none Review URL: http://codereview.chromium.org/6386023/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73790 0039d316-1c4b-4281-b951-d872f2087c98
* Add a note to tabs.onCreated documentation that the url might not be defined.asargent@chromium.org2011-01-071-1/+1
| | | | | | | | | | | | | | Glen got bit by this during development of an extension, where he was expecting that the tab's url would always be defined right away. (Someone filed crbug.com/52195 about this a while back, but I had marked it as WontFix because there are legitimate reasons why the url isn't always set) BUG=none TEST=none Review URL: http://codereview.chromium.org/6193001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70767 0039d316-1c4b-4281-b951-d872f2087c98
* Update the copyright year.kathyw@chromium.org2011-01-061-1/+1
| | | | | | | | | | TBR=aa BUG=none TEST=none Review URL: http://codereview.chromium.org/6140001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70653 0039d316-1c4b-4281-b951-d872f2087c98
* Doc changeskathyw@chromium.org2010-12-071-5/+14
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/5398002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68490 0039d316-1c4b-4281-b951-d872f2087c98
* Finish the doc part of the de-experimentalization of the omnibox API. Please ↵kathyw@chromium.org2010-11-291-0/+1
| | | | | | | | | | | check the content changes to manifest.html and omnibar.html. BUG=63845 TEST=none Review URL: http://codereview.chromium.org/5326007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67590 0039d316-1c4b-4281-b951-d872f2087c98
* Improve the doc navigation.kathyw@chromium.org2010-11-111-1/+9
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/4774002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65744 0039d316-1c4b-4281-b951-d872f2087c98
* Add pinned property to tabs.update and create.jstritar@chromium.org2010-11-081-9/+237
| | | | | | | | | | | Fire tabs.onUpdated event if a tab's pinned state changes. BUG=24781 TEST=ExtensionApiTest Review URL: http://codereview.chromium.org/3816005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65379 0039d316-1c4b-4281-b951-d872f2087c98
* Add collapsible sections to the Chrome extension documentation sidebar.kurrik@chromium.org2010-10-291-2/+6
| | | | | | | | | | | | | * Adds a new "toggle" sprite to the documentation images. * Adds CSS classes for the toggles. * Includes "sidebar.js" for documentation pages which implements the toggles in JavaScript. BUG=49239 TEST=None Review URL: http://codereview.chromium.org/4005003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64488 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Fires port.onDisconnect if tabs.connect fails.jstritar@chromium.org2010-10-281-3/+3
| | | | | | | | | | | | 2. Throws an error in port.postMessage if the port has already been disconnected. 3. Sets lastError when tabs.sendRequest can't connect to the tab. BUG=27565, 32899 TEST=ExtensionApiTest Review URL: http://codereview.chromium.org/3676008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64277 0039d316-1c4b-4281-b951-d872f2087c98
* Indicate if window is closing in tabs.onRemoved callbackjstritar@chromium.org2010-10-151-1/+116
| | | | | | | | | | | This adds a removeInfo object to the chrome.tabs.onRemoved callback that indicates if the tab's window is also closing. BUG=56592 TEST=ExtensionApiTest Review URL: http://codereview.chromium.org/3692004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62755 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding "Take extension 'management' API out of experimental."asargent@chromium.org2010-10-041-0/+1
| | | | | | | | | | | | | | | | | | | This includes the original code plus changes to 2 new files to fix a test that was failing: chrome/browser/resources/webstore_app/manifest.json chrome/test/data/extensions/api_test/extension_gallery_install/test.html Original review url was: http://codereview.chromium.org/3537010 BUG=56399 TEST=You should be able to write an extension using the management API. TBR=aa@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61422 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 61347 - Take extension 'management' API out of experimental.asargent@chromium.org2010-10-041-1/+0
| | | | | | | | | | | BUG=56399 TEST=You should be able to write an extension using the management API. Review URL: http://codereview.chromium.org/3537010 TBR=asargent@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61348 0039d316-1c4b-4281-b951-d872f2087c98
* Take extension 'management' API out of experimental.asargent@chromium.org2010-10-041-0/+1
| | | | | | | | | BUG=56399 TEST=You should be able to write an extension using the management API. Review URL: http://codereview.chromium.org/3537010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61347 0039d316-1c4b-4281-b951-d872f2087c98
* Add a note saying that not all functions require the tabsrafaelw@chromium.org2010-09-101-3/+4
| | | | | | | | | | | | | | permission to use. Landing: http://codereview.chromium.org/3329022/show for finnur who can't currently build extension docs. TBR=finnur BUG=43743 TEST=None (doc change) Review URL: http://codereview.chromium.org/3367024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59113 0039d316-1c4b-4281-b951-d872f2087c98
* Warn the user to regenerate docs when changing examples.jochen@chromium.org2010-09-021-1/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3331002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58329 0039d316-1c4b-4281-b951-d872f2087c98
* Change, unify, and specify ordering of cookies from CookieMonster.rdsmith@chromium.org2010-08-271-2/+1
| | | | | | | | | | | | | | Affected interfaces: * GetCookiesWithOptions (used by HTTP requests) * GetAllCookiesForURL (used by extensions and Cookies UI) * GetAllCookies (used by Cookies UI). BUG=8850 (indirectly) TEST=Standard cookie monster tests, unit_tests::CookiesTreeModelTest.OriginOrdering, browser_tests::ExtensionApiTest.Cookies Review URL: http://codereview.chromium.org/3170034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57694 0039d316-1c4b-4281-b951-d872f2087c98
* Several small extensions docs system fixesasargent@chromium.org2010-08-191-14/+14
| | | | | | | | | | | | | -Allow automagic links to types in API descriptions, using "$ref:TYPE_ID" -Fix syntax error in callback code -Fix a couple other small nits BUG=52616 TEST=none Review URL: http://codereview.chromium.org/3117029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56764 0039d316-1c4b-4281-b951-d872f2087c98
* Add whats_new.html to extension docs.aa@chromium.org2010-08-181-0/+1
| | | | | | Review URL: http://codereview.chromium.org/3183016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56613 0039d316-1c4b-4281-b951-d872f2087c98
* Add documentation about context menu API onclick callbacks.asargent@chromium.org2010-08-111-0/+642
| | | | | | | | | | | | This required modifying the docs build system to be able to output information about function parameters. BUG=49693 TEST=none Review URL: http://codereview.chromium.org/3167003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55737 0039d316-1c4b-4281-b951-d872f2087c98
* Extension doc changes (nothing buildable or testable)rafaelw@chromium.org2010-07-271-0/+5
| | | | | | | | | | | Add boilerplate line for experimental api pages BUG=48582 TEST=NONE Review URL: http://codereview.chromium.org/2881038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53734 0039d316-1c4b-4281-b951-d872f2087c98
* Revert extension docs buildscript changes from r52616asargent@chromium.org2010-07-181-1/+2
| | | | | | | | | | | | | | In r52616 Aaron checked in some improvements to speed up doc generation, but they don't seem to work for me on either windows or ubuntu hardy. Either he missed some changes or it only works on newer ubuntu or something. TBR=rafaelw BUG=none TESt=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52866 0039d316-1c4b-4281-b951-d872f2087c98
* Move context menu module out of experimental.aa@chromium.org2010-07-171-0/+1
| | | | | | | | BUG=48725,39508 Review URL: http://codereview.chromium.org/2840038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52784 0039d316-1c4b-4281-b951-d872f2087c98
* Unexperimentalify the cookies API.aa@chromium.org2010-07-161-0/+1
| | | | | | | | BUG=41663,48726 Review URL: http://codereview.chromium.org/2982008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52623 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r52581. The change seems OK, but it had the wrongaa@chromium.org2010-07-161-1/+0
| | | | | | | | | description and bug association. Will re-land with correct information. TBR=thakis@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52585 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebCore's built in support for user styles instead of theaa@chromium.org2010-07-161-0/+1
| | | | | | | | | | | | | | hack we were doing before. This has a side-effect of fixing a bunch of content-interaction bugs because we will be using real user-level styles (in the CSS sense) rather than content-level styles. BUG=29995 Review URL: http://codereview.chromium.org/2932007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52581 0039d316-1c4b-4281-b951-d872f2087c98
* Move idle from experimental.levin@chromium.org2010-07-121-0/+1
| | | | | | | | | TEST=browser_tests.exe --gtest_filter=ExtensionApiTest.Idle BUG=None Review URL: http://codereview.chromium.org/2930001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52121 0039d316-1c4b-4281-b951-d872f2087c98