summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources
Commit message (Collapse)AuthorAgeFilesLines
* Support PNG and quality control in chrome.tabs.captureVisibleTab().skerner@chromium.org2010-04-081-15/+44
| | | | | | | | | BUG=21072 TEST=ExtensionAPIClientTest.CaptureVisibleTab Review URL: http://codereview.chromium.org/1527015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43985 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: No longer accept 'null' as signifying unset optional object property ↵rafaelw@chromium.org2010-04-061-3/+2
| | | | | | | | | | | | | | | | in extension calls This changes the json schema validation to treat a object property set to null as significant, rather than meaning the property is not specified. original review: http://codereview.chromium.org/1558021/show BUG=39465 TBR=oshima TEST=all tests should pass Review URL: http://codereview.chromium.org/1618005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43767 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "No longer accept 'null' as signifying unset optional object property ↵rafaelw@chromium.org2010-04-051-1/+2
| | | | | | | | | | in extension calls." This reverts commit 02bd0a11dd8cee6e19c201e30b3984b638b2ddd1. Review URL: http://codereview.chromium.org/1512019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43666 0039d316-1c4b-4281-b951-d872f2087c98
* No longer accept 'null' as signifying unset optional object property in ↵rafaelw@chromium.org2010-04-051-2/+1
| | | | | | | | | | | | | extension calls. This changes the json schema validation to treat a object property set to null as significant, rather than meaning the property is not specified. BUG=39465 TEST=all tests should pass Review URL: http://codereview.chromium.org/1558021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43655 0039d316-1c4b-4281-b951-d872f2087c98
* Move history API out of experimental. Allow extensions to override history ↵skerner@chromium.org2010-04-012-18/+1
| | | | | | | | | | | page. BUG=32362 TEST=ExtensionApiTest.History, ExtensionApiTest.Overrides, manual testing. Review URL: http://codereview.chromium.org/1530002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43387 0039d316-1c4b-4281-b951-d872f2087c98
* Adding API tests for getViews and infobars.finnur@chromium.org2010-03-311-2/+12
| | | | | | | | | | | | | Also fixing a bug where the wrong window id was returned back after creating the infobar, and changing html path param when calling show() from htlpPath to path as requrested by aa. TEST=See chrome_tests.gypi BUG=26463 Review URL: http://codereview.chromium.org/1561003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43176 0039d316-1c4b-4281-b951-d872f2087c98
* Properly fix ends of lines.antonm@chromium.org2010-03-241-1/+27
| | | | | | | | BUG=39156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42454 0039d316-1c4b-4281-b951-d872f2087c98
* Enforce extension permissions in C++ (instead of Javascript).jochen@chromium.org2010-03-242-14/+1
| | | | | | | | | BUG=38920 TEST=ExtensionApiTest.Incognito Review URL: http://codereview.chromium.org/1148009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42441 0039d316-1c4b-4281-b951-d872f2087c98
* Fix end of lines.antonm@chromium.org2010-03-231-27/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42367 0039d316-1c4b-4281-b951-d872f2087c98
* Initial version of an experimental Extensions Context Menu API.asargent@chromium.org2010-03-232-4/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The proposal for the API is documented at: http://dev.chromium.org/developers/design-documents/extensions/context-menu-api Notable limitations in this initial implementation: -No reliable way to get at the unique, actual node clicked on in contexts like IMAGE/LINK/etc. We'll need to fix this in the long run - see the API proposal page for some notes on this. -No update or deleteAll methods ; the only way you can change items is to delete by id and re-add. -We aren't yet matching the UI goal of having the extension items at the top level include the extension icon on the left. This will require a refactoring of RenderViewContextMenu to steal some of the code from the bookmarks bar context menus, which can display favicons. -The only kind of parent->child menu that currently works is if you have a single top-level parent, and only one level of children. (This is because of how RenderViewContextMenu currently works) -No browser tests that the menu items actually get drawn (will wait on those until the above mentioned refactor is complete), or API tests (the API may change a bit based on feedback, at which point I'll write more tests). -Unit tests need to cover some more cases. BUG=32363 TEST=Should be able to create context menus with this API. Review URL: http://codereview.chromium.org/1042003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42321 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for interacting with the DOM in browser_tests.kkania@chromium.org2010-03-181-0/+234
| | | | | | | | | BUG=none TEST=none Reivew url: http://codereview.chromium.org/660046 Review URL: http://codereview.chromium.org/1051005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42026 0039d316-1c4b-4281-b951-d872f2087c98
* Minor extension infobar changes.finnur@chromium.org2010-03-181-1/+1
| | | | | | | | | | | Addressing review comments that were submitted after I checked in. BUG=26463 TEST=None Review URL: http://codereview.chromium.org/1097002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41990 0039d316-1c4b-4281-b951-d872f2087c98
* Committing for dcheng@brg@chromium.com2010-03-171-0/+1
| | | | | | | Original review: http://codereview.chromium.org/882003 Review URL: http://codereview.chromium.org/1042004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41874 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 41789 - Add support for DOM interaction in browser tests via C++.kkania@chromium.org2010-03-171-234/+0
| | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/660046 TBR=kkania@chromium.org Review URL: http://codereview.chromium.org/971004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41807 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at adding Extension Infobars to the experimental API.finnur@chromium.org2010-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Originally described here: http://code.google.com/p/chromium/wiki/InfoBarExtensionAPI The API is simple: chrome.experimental.infoBar.show( {"htmlPath": "infobar.html"}, function(window) { // |window| is where the infobar was shown. }); To close it, you can simply call window.close() from within the InfoBar (infoBar.hide is not provided). The api is privileged (not available to content scripts directly). The minimum height for the infobar is regular height for our infobars (32 pixels), maximum is twice that and the actual size is determined by the content (within these constraints mentioned). See screenshot in bug. The icon on the far left is an extension icon with a dropdown menu showing the menu that shows when you right-click on the extension icon in the Omnibox/browser action container. BUG=26463 TEST=None (for now). Review URL: http://codereview.chromium.org/1049001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41806 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for DOM interaction in browser tests via C++.kkania@chromium.org2010-03-171-0/+234
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/660046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41789 0039d316-1c4b-4281-b951-d872f2087c98
* Idle API for the extension systembrg@chromium.com2010-03-161-0/+1
| | | | | | | | Tests=ExtensionApiTest.Idle Bug=one Review URL: http://codereview.chromium.org/845005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41661 0039d316-1c4b-4281-b951-d872f2087c98
* Move metrics api to the experimental name space.rogerta@chromium.org2010-03-121-1/+1
| | | | | | | | | BUG=0 TEST=n/a Review URL: http://codereview.chromium.org/899003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41487 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome.extension.inIncognitoTab for content scripts.mpcomplete@chromium.org2010-03-121-4/+4
| | | | | | Review URL: http://codereview.chromium.org/822008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41446 0039d316-1c4b-4281-b951-d872f2087c98
* Add a metrics extensions API.rogerta@chromium.org2010-02-261-0/+1
| | | | | | | | | | | See http://docs.google.com/View?id=dd4ngnpz_0dpsb8n96 for API proposal. BUG=0 TEST=See unit tests as part of this CL Review URL: http://codereview.chromium.org/657037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40130 0039d316-1c4b-4281-b951-d872f2087c98
* Allow users to enable extensions in incognito. Requiresmpcomplete@chromium.org2010-02-252-1/+14
| | | | | | | | | | | | | --enable-experimental-extension-apis . The UI needs work. Tab and window events are hooked up so that they work with incognito tabs/windows when enabled. BUG=32365 BUG=36292 Review URL: http://codereview.chromium.org/657041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40057 0039d316-1c4b-4281-b951-d872f2087c98
* Clone of issue 577015.twiz@chromium.org2010-02-121-1/+7
| | | | | | | | | | | See http://codereview.chromium.org/577015 for the review status of this CL. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/600101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38927 0039d316-1c4b-4281-b951-d872f2087c98
* Fix spelling error on history transition type.brg@chromium.com2010-02-111-1/+1
| | | | | | | | | Also mark the history test as flaky. BUG=35430, 26296 TEST=ExtensionApiTest.FLAKY_History Review URL: http://codereview.chromium.org/601049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38850 0039d316-1c4b-4281-b951-d872f2087c98
* Move base.js file to the renderer/resources since it's not used by DevTools ↵yurys@chromium.org2010-02-091-0/+1015
| | | | | | | | any more Review URL: http://codereview.chromium.org/593015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38476 0039d316-1c4b-4281-b951-d872f2087c98
* Add an accessibility API for events raised outside of the web content.estade@chromium.org2010-01-302-8/+26
| | | | | | | | | | BUG=none TEST=none patch by Dominic Mazzoni <dmazzoni [at] google> review url: http://codereview.chromium.org/402099/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37597 0039d316-1c4b-4281-b951-d872f2087c98
* Adds an experimental processes module to the extensions API.creis@chromium.org2010-01-281-1/+2
| | | | | | | | | | | | This first step adds only a Process object with an id, along with a getProcessForTab function. BUG=32303 TEST=browser_test.exe --gtest_filter=ExtensionAPITest.Processes Review URL: http://codereview.chromium.org/551090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37411 0039d316-1c4b-4281-b951-d872f2087c98
* revert 37335:estade@chromium.org2010-01-272-24/+7
| | | | | | | | | | | | | Add an accessibility API for events raised outside of the web content. BUG=none TEST=none patch by Dominic Mazzoni <dmazzoni [at] google> review url: http://codereview.chromium.org/402099/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37337 0039d316-1c4b-4281-b951-d872f2087c98
* Add an accessibility API for events raised outside of the web content.estade@chromium.org2010-01-272-7/+24
| | | | | | | | | | | BUG=none TEST=none patch by Dominic Mazzoni <dmazzoni [at] google> review url: http://codereview.chromium.org/402099/show Review URL: http://codereview.chromium.org/549182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37335 0039d316-1c4b-4281-b951-d872f2087c98
* Fix error message when a page action calls chrome.pageAction.setIcon() with ↵skerner@chromium.org2010-01-141-5/+7
| | | | | | | | | | | a nonexistent icon. BUG=NONE TEST=Install chrome/common/extensions/docs/examples/api/pageAction/set_icon/, click the page action three times, look at the console. Review URL: http://codereview.chromium.org/536035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36219 0039d316-1c4b-4281-b951-d872f2087c98
* Add an experimental bookmark manager API to extensions.arv@chromium.org2010-01-141-3/+3
| | | | | | | | | BUG=32194 TEST=browser_tests.exe --gtest_filter=ExtensionApiTest.BookmarkManager Review URL: http://codereview.chromium.org/550021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36213 0039d316-1c4b-4281-b951-d872f2087c98
* Adding support for i18n to content scripts.cira@chromium.org2009-12-292-9/+10
| | | | | | | | Auto-updated extension docs. Review URL: http://codereview.chromium.org/522017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35320 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor browser action apitest and port for mac.kkania@chromium.org2009-12-141-17/+17
| | | | | | | | BUG=29709 TEST=none Review URL: http://codereview.chromium.org/443013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34498 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent 2 types of extension crashes.asargent@chromium.org2009-12-101-0/+14
| | | | | | | | | | | | | | | | | If javascript code puts custom toJSON functions on Array.prototype, our extension API code detects malformed requests and kills the offending renderer. Also, the browser can crash if a browser action popup process dies (for various reasons, including this json serialization problem). BUG=29283 TEST=Create an extension with a browser action popup that loads prototype.js, and then calls chrome.tabs.update(). Before this change, the popup bubble will crash, and when you click away, crash the browser too. Review URL: http://codereview.chromium.org/466065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34263 0039d316-1c4b-4281-b951-d872f2087c98
* Add a 'minus' graphic to the local error page if you expand thetony@chromium.org2009-12-081-31/+55
| | | | | | | | | | | | | | "more details" link. Also add a slide transition for showing/hiding the details. BUG=28923 TEST=Turn off error pages in Options, navigate to http://dev.chromium.org:8024/ and play with the "More information on this error" link. Review URL: http://codereview.chromium.org/463045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34083 0039d316-1c4b-4281-b951-d872f2087c98
* Addition of a new parameter to the popup.show(...) Chrome extension API that ↵twiz@google.com2009-12-081-6/+18
| | | | | | | | | | | | | | | allows the caller to specify the behaviour of the window focus when the pop-up is displayed. I added a test for the new parameter in the ExtensionApiTest.FLAKY_Popup test. I also corrected a truncated string in the unit-test. Because the pop-up actually uses two windows, I had to change the WidgetWin::Show() routine to also reposition the window at the top. If a window is shown and activated, it is automatically brought to the front. Because we don't activate the pop-up when we want to keep the focus in the current extension view, I had to bring it to the front so that it wouldn't be hidden behind the 'chrome-bubble' window. BUG=none TEST=ExtensionApiTest.FLAKY_Popup Review URL: http://codereview.chromium.org/454019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34037 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring of the chrome.experimental.popup API implementation to allow ↵twiz@google.com2009-11-161-11/+29
| | | | | | | | | | | | | | | | display of pop-ups for extensions viewed through a tab-contents view.I added a new class, ExtensionPopupHost. This class implements the necessary environment for managing child popup windows from either an ExtensionHost, or an ExtensionDOMUI. Note that this class is added as a member to ExtensionHost and ExtensionDOMUI. I decided to take this approach to prevent multiple inheritance of the NotificationObserver class: Both ExtensionPopupHost and ExtensionHost must inherit from this class, and I was uncertain of how the system would behave wrt virtual inheritance. Please comment on if I should have used the inheritance approach. I also removed the customHandler tag (in extension_api.json) that I had added in the initial submission. The arguments in the schema are now those that users of the API see. The nodocs tags were also removed. The api experimental.popup.getAnchorWindow() has been renamed to popup.getParentWindow, as per a suggestion from Erik K. BUG=none TEST=extension_popup_apitest.cc Review URL: http://codereview.chromium.org/385061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32120 0039d316-1c4b-4281-b951-d872f2087c98
* Add stub functions for chrome.* APIs in content scripts. asargent@chromium.org2009-11-132-3/+55
| | | | | | | | | | | | | | | | | | | Most of the extensions API is not supported in content scripts for security purposes. Instead the typical pattern is to use messaging between content scripts and a background page which executes them on behalf of the script. This is not immediately obvious to many extension developers, so this change adds an error message to help them better understand what's going on. BUG=26128 TEST=Try writing a content script that uses some of the extensions API stuff in chrome.tabs, chrome.windows, etc. You should see errors in the console telling you that it isn't supported in content scripts. Review URL: http://codereview.chromium.org/366024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31958 0039d316-1c4b-4281-b951-d872f2087c98
* JsonSchema support for declaring "object" constructors.rafaelw@chromium.org2009-11-122-30/+54
| | | | | | | | | | | | | | | | | This adds support for an optional declaration of "isInstanceOf" on "type":"object". If present, the candidate object will be tested for js:instanceof window[schema.isInstanceOf]. Several api functions are modified to take advantage of declaring their "class". Also, support added to docs for modules, methods & events to declare "nodocs":"true" to be excluded from the docs. Also, check to warn on an attempt to use cygwin python to generate docs. BUG=27213 TEST=NONE Review URL: http://codereview.chromium.org/389005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31834 0039d316-1c4b-4281-b951-d872f2087c98
* For Siggi, from http://codereview.chromium.org/375002/showmad@chromium.org2009-11-061-3/+6
| | | | | | | | | | http://codereview.chromium.org/375002/show BUG=0 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31222 0039d316-1c4b-4281-b951-d872f2087c98
* Add first class support for user scripts.aa@chromium.org2009-11-041-0/+9
| | | | | | | | | | | | Original review: http://codereview.chromium.org/340057 TBR=mpcomplete@chromium.org BUG=22103 TEST=Install a user script (such as from userscripts.org). You should get the extension install UI and the script should show up in the extension management UI. It should also work, though some scripts use Firefox-specific APIs and those won't work in Chromium. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30925 0039d316-1c4b-4281-b951-d872f2087c98
* Submitting change from http://codereview.chromium.org/276029/showmad@chromium.org2009-11-031-2/+91
| | | | | | | | BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30778 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the Extension History API, v 0.1.The first version is a weak ↵brg@chromium.com2009-10-301-2/+26
| | | | | | | | wrapper around the HistoryServices object in Chrome.BUG=22952TEST=browser_tests.exe --gtest_filer=ExtensionApiTest.History Review URL: http://codereview.chromium.org/313001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30561 0039d316-1c4b-4281-b951-d872f2087c98
* Change the extension.onRequest even to include the sender info.mpcomplete@chromium.org2009-10-291-5/+6
| | | | | | | | BUG=23865 Review URL: http://codereview.chromium.org/341025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30534 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in Event.hasListener().aa@chromium.org2009-10-291-1/+1
| | | | | | | | Patch from Kelly Norton <knorton@google.com> TBR=mpcomplete@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30506 0039d316-1c4b-4281-b951-d872f2087c98
* New event style for pageAction API.asargent@chromium.org2009-10-291-2/+6
| | | | | | | | | | | | This makes us fire both the old deprecated style of pageActions click handler and the new pageAction style. BUG=25833 TEST=none Review URL: http://codereview.chromium.org/346006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30499 0039d316-1c4b-4281-b951-d872f2087c98
* Limit chrome.(browser|page)Action.setIcon({imageData:...}) toaa@chromium.org2009-10-281-2/+14
| | | | | | | | | | a max of 19px square. BUG=25626 Review URL: http://codereview.chromium.org/342012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30327 0039d316-1c4b-4281-b951-d872f2087c98
* Rename getTabContentses to getExtensionTabs.aa@chromium.org2009-10-281-1/+6
| | | | | | | | | | | | | The old name is also aliased for backwards compat. This lands: http://codereview.chromium.org/224012 BUG=21433 Review URL: http://codereview.chromium.org/339041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30326 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that Helvetica, if installed, is used instead of Arial. This should ↵avi@chromium.org2009-10-272-2/+2
| | | | | | | | | | | | be an effective defense against the Mac fontheads zombie uprising. BUG=http://crbug.com/21458 TEST=navigate to any HTML-as-UI page (about:credits, etc) on a Mac; ensure Helvetica-ness Review URL: http://codereview.chromium.org/333032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30190 0039d316-1c4b-4281-b951-d872f2087c98
* Don't scale up small browser action icons.finnur@chromium.org2009-10-261-8/+5
| | | | | | | | | | | | | | | | | | | | | When creating the canvas, take cues from the image we just loaded and don't hard code it to 19x19. This way we can have smaller than 19x19 icons that show up centered within the browser icon button. This doesn't attempt to deal with scaling down images that are too large to fit the 19x19 canvas, but we haven't decided how to handle those anyway. BUG=25487 TEST=Load the api_test/browser_action_tab_specific_state extension and click on the browser action. The red square within the button should not grow in size as you click. Review URL: http://codereview.chromium.org/337026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30072 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BrowserActions, and add support foraa@chromium.org2009-10-241-3/+3
| | | | | | | | | | | | | | | | | tab-specific state. Future changelists will move Page Actions over to ExtensionAction2, then replace ExtensionAction and ExtensionActionState with ExtensionAction2. Also, fix a bug in setIcon({path:...}) where it would work only the first time. BUG=24669,24472 Review URL: http://codereview.chromium.org/306044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29997 0039d316-1c4b-4281-b951-d872f2087c98