summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources
Commit message (Collapse)AuthorAgeFilesLines
* fix bookmarks API crash when handling invalid URLerikkay@chromium.org2010-10-111-2/+4
| | | | | | | | | | | also re-enable test on Windows (can't repro crashes) BUG=56945,45595 TEST=ExtensionApiTest.Bookmarks Review URL: http://codereview.chromium.org/3672003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62170 0039d316-1c4b-4281-b951-d872f2087c98
* Change plugin content settings to three states: Allow, click-to-play, and block.bauerb@chromium.org2010-10-112-2/+2
| | | | | | | | | | | | | The click-to-play default setting says "Let me choose which plug-ins to run". XIB changes: Change the middle radio button label in plug-in default settings from IDS_PLUGINS_LOAD_SANDBOXED_RADIO to IDS_PLUGINS_ASK_RADIO. BUG=35316,56514,56270 TEST=ContentSettingsBubbleModelTest.*, mainly Review URL: http://codereview.chromium.org/3608007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62146 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding "Take extension 'management' API out of experimental."asargent@chromium.org2010-10-041-1/+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/+1
| | | | | | | | | | | 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-1/+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
* Move disabling outdated plugins to labs and update UI to Glen's mocks.bauerb@chromium.org2010-09-302-12/+65
| | | | | | | | | BUG=47731 TEST=Disabling outdated plugins should show up in about:labs Review URL: http://codereview.chromium.org/3386033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61055 0039d316-1c4b-4281-b951-d872f2087c98
* DOMUI etc. Use the built in bind method of Function now that V8 supports it.arv@chromium.org2010-09-131-8/+2
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3308030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59303 0039d316-1c4b-4281-b951-d872f2087c98
* relative URL handling improvementserikkay@chromium.org2010-09-091-1/+4
| | | | | | | | | BUG=54715 TEST=ExtensionFileUtil.ExtensionURLToRelativeFilePath Review URL: http://codereview.chromium.org/3332012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58984 0039d316-1c4b-4281-b951-d872f2087c98
* Private API for web store to get sync login and set store login information.asargent@chromium.org2010-09-011-0/+1
| | | | | | | | | | BUG=53489 TEST=Not sure yet the best way to test this - it will depend on how the store implements their part of the API. Review URL: http://codereview.chromium.org/3219006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58126 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for a "split" incognito behavior for extensions.mpcomplete@chromium.org2010-08-312-3/+5
| | | | | | | | | | | | | | | | - On by default for apps, off by default for extensions. - Split mode means "run incognito extensions in a separate process if the user says OK, and the two processes can only see their own profile." - Spanning mode is what we have now, and means "run a single extension process, but allow it to access both profiles if the user says OK." BUG=49232 BUG=49114 TEST=extensions still work in incognito when you check "Allow in Incognito". Review URL: http://codereview.chromium.org/3210007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58033 0039d316-1c4b-4281-b951-d872f2087c98
* Don't show scrollbars in click-to-play UIbauerb@chromium.org2010-08-311-0/+1
| | | | | | | | | BUG=53838 TEST=with click-to-play enabled, go to a page with a small plugin. You shouldn't see scrollbars in the click-to-play UI. Review URL: http://codereview.chromium.org/3240009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57994 0039d316-1c4b-4281-b951-d872f2087c98
* Update click-to-play UI and strings.bauerb@chromium.org2010-08-312-30/+33
| | | | | | | | | | | | http://imgur.com/gkbct.png (normal) http://imgur.com/ue6ao.png (hover) BUG=51906 TEST=none Review URL: http://codereview.chromium.org/3218006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57971 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-311-0/+6
| | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). Original Review: http://codereview.chromium.org/3163044 BUG=27431 TBR=mpcomplete Review URL: http://codereview.chromium.org/3263007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57941 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-281-6/+0
| | | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3249004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57789 0039d316-1c4b-4281-b951-d872f2087c98
* Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-281-0/+6
| | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57788 0039d316-1c4b-4281-b951-d872f2087c98
* When the browser doesn't have connectivity to a hosted app, display a ↵erikkay@chromium.org2010-08-271-0/+53
| | | | | | | | | | | prettier error page by default. TEST=none BUG=41281 Review URL: http://codereview.chromium.org/3174024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57680 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at experimental API for managing installed/enabled extensions.asargent@chromium.org2010-08-261-0/+1
| | | | | | | | | | | The documented methods should all be working, but events are not hooked up yet. BUG=51178 TEST=none Review URL: http://codereview.chromium.org/3200012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57544 0039d316-1c4b-4281-b951-d872f2087c98
* Lands http://codereview.chromium.org/3153008 for bryeung:sky@chromium.org2010-08-201-0/+1
| | | | | | | | | | | | | | | | Synthetic KeyEvent delivery, part I. This delivers synthetic key events to the views hierarchy. This currently does nothing, as nothing is listening for the event in TOUCH_UI (or elsewhere). That part will come later. BUG=none TEST=unit test for key identifier conversion + manual for extension api Review URL: http://codereview.chromium.org/3130029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56886 0039d316-1c4b-4281-b951-d872f2087c98
* Initial version of chrome.experimental.sidebar extension API. brettw@chromium.org2010-08-192-16/+28
| | | | | | | | | | | | | | BUG=51084 TEST=Run interactive_ui_tests and browser_tests. New: - sidebar Extension API (design doc: https://docs.google.com/a/google.com/Doc?docid=0AV4Qg3xyZ8RQZGZtbWIydDJfNWc0eHJtbmRm&hl=en); - Sidebar panel in Chrome browser view; Original review=http://codereview.chromium.org/2836040/show Patch by alekseys@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56716 0039d316-1c4b-4281-b951-d872f2087c98
* Forbid NaN and infinite numbers in extensions API type validator.skerner@chromium.org2010-08-171-0/+10
| | | | | | | | | BUG=51449 TEST=JsonSchemaTest.TestNumber Review URL: http://codereview.chromium.org/3158015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56350 0039d316-1c4b-4281-b951-d872f2087c98
* remove toolstripserikkay@chromium.org2010-08-121-100/+0
| | | | | | | | | | | BUG=51703 BUG=30178 BUG=25106 TEST=none Review URL: http://codereview.chromium.org/3129003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55921 0039d316-1c4b-4281-b951-d872f2087c98
* Adding tts experimental extensions apichaitanyag@chromium.org2010-08-123-1/+17
| | | | | | Review URL: http://codereview.chromium.org/2969005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55822 0039d316-1c4b-4281-b951-d872f2087c98
* Disable outdated non-sandboxed plugins.bauerb@chromium.org2010-08-091-20/+36
| | | | | | | | | | | Relanding r55227, which had a compile error. BUG=47731 TEST=Run with --disable-outdated-plugins Review URL: http://codereview.chromium.org/3071028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55394 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 55227 - Disable outdated non-sandboxed plugins.bauerb@chromium.org2010-08-061-36/+20
| | | | | | | | | | | | BUG=47731 TEST=Run with --disable-outdated-plugins Review URL: http://codereview.chromium.org/3038051 TBR=bauerb@chromium.org Review URL: http://codereview.chromium.org/3083021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55229 0039d316-1c4b-4281-b951-d872f2087c98
* Disable outdated non-sandboxed plugins.bauerb@chromium.org2010-08-061-20/+36
| | | | | | | | | BUG=47731 TEST=Run with --disable-outdated-plugins Review URL: http://codereview.chromium.org/3038051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55227 0039d316-1c4b-4281-b951-d872f2087c98
* Prettify blocked plugin HTML UI:bauerb@chromium.org2010-08-051-1/+17
| | | | | | | | | | | | | * Make run plugin link look more like a link (blue and underlined on hover). * Change wording to "Run plug-in this time" ("load plug-in" might get confused with installing a plug-in) * Add a small explanatory message BUG=none TEST=none Review URL: http://codereview.chromium.org/3074021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55060 0039d316-1c4b-4281-b951-d872f2087c98
* First stage of proxy extension API.pam@chromium.org2010-08-041-0/+1
| | | | | | | | | | | | | Adds a basic API that will cover the features available with the --proxy-server command-line switch, once the underlying proxy config is rewritten to actually access the pref dynamically rather than only ever loading a proxy config on startup. BUG=48930 TEST=covered by browser_tests (ExtensionApiTest.Proxy*) Review URL: http://codereview.chromium.org/3074013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54882 0039d316-1c4b-4281-b951-d872f2087c98
* Add the definition of the webRequest and webNavigation APIs.jochen@chromium.org2010-08-031-0/+2
| | | | | | | | | | | The webRequest API doesn't support the planned filter and extraInfoSpec parameters yet, these will be added later. BUG=50943 TEST=ExtensionApiTest.WebRequest,ExtensionApiTest.WebNavigation Review URL: http://codereview.chromium.org/3061041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54723 0039d316-1c4b-4281-b951-d872f2087c98
* Print a better error message when someone passes the wrong parameters tompcomplete@chromium.org2010-07-211-1/+5
| | | | | | | | | | | sendRequest. BUG=46094 TEST=no Review URL: http://codereview.chromium.org/3005022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53228 0039d316-1c4b-4281-b951-d872f2087c98
* Add click-to-load functionality for blocked plugins.bauerb@chromium.org2010-07-191-0/+57
| | | | | | | | | BUG=35316 TEST=Disable plugins, go to a site with a flash animation. You should see a placeholder for the flash animation. When you click on it, the animation should load. Review URL: http://codereview.chromium.org/2862031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52899 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to limit when context menu items appear with url patterns.asargent@chromium.org2010-07-181-1/+1
| | | | | | | | | BUG=408198 TEST=Extensions context menu API should work with changes described. Review URL: http://codereview.chromium.org/2811049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52867 0039d316-1c4b-4281-b951-d872f2087c98
* Move context menu module out of experimental.aa@chromium.org2010-07-172-6/+6
| | | | | | | | 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-1/+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/+1
| | | | | | | | | 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-1/+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
* Only setup the contextMenus listener if we're actually using contextMenus.asargent@chromium.org2010-07-151-8/+15
| | | | | | | | | | | | Erik ran into a problem related to this while working on some changes to permissions handling for event listening. BUG=none TEST=Context Menus API onclick callbacks should work normally. Review URL: http://codereview.chromium.org/2963012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52431 0039d316-1c4b-4281-b951-d872f2087c98
* More cleanup of extensions context menu API.asargent@chromium.org2010-07-141-12/+46
| | | | | | | | | | | | | | | | | | | This changes the contextMenus.create method to synchronously return an id instead of aysynchronously in the callback. This meant moving the generating of id's from a globally unique integer in C++ code to an extension-unique integer in javascript. The C++ unique id thus becomes a pair of <extension_id,int>. Also a couple of small drive-by cleanups while I was in some of the files. BUG=48198 TEST=The context menu API should work normally, given the changes described above. Review URL: http://codereview.chromium.org/2911007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52384 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome.experimental.omnibox.styleUrl for highlighting text as an URL.mpcomplete@chromium.org2010-07-141-0/+4
| | | | | | | | | | | Update the chrome code search sample extension to have some fancier highlighting. TEST=none Review URL: http://codereview.chromium.org/2944012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52358 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up browser_resources.grd:pkasting@chromium.org2010-07-131-2/+2
| | | | | | | | | | | | | | * Flatten HTML where possible * Move resources only referenced by files in browser/resources/ into there (and out of the theme dir) * Remove duplicate/unreferenced resources * Remove IDs for resources that are inlined due to flattening * Remove IDR_CHAT_MANAGER_MANIFEST but leave the files on disk (they will be moving elsewhere some time soon) BUG=none TEST=none Review URL: http://codereview.chromium.org/2897015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52239 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up renderer_resources.grd:pkasting@chromium.org2010-07-121-0/+0
| | | | | | | | | | | * Always mark HTML/CSS as "flattenhtml" unless not possible * Remove unused resource BUG=none TEST=none Review URL: http://codereview.chromium.org/2896005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52147 0039d316-1c4b-4281-b951-d872f2087c98
* Move idle from experimental.levin@chromium.org2010-07-121-1/+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
* Some cleanup of the extensions context menu API. asargent@chromium.org2010-07-092-10/+4
| | | | | | | | | | | | | | | | | | This CL contains the following: -Use lower case names for enum values in the create/update properties (eg 'page' instead of 'PAGE') -Make the top-level API name plural (contextMenus instead of contextMenu) -Don't fire onclick handlers for a parent menu item when one of its children is clicked on. -Remove the enabledContexts property for now, to eventually be replaced with a way to programmatically enable/disable. There are a few more things in the bug that I'll be doing in subsequent CL's. BUG=48198 TEST=Extensions using the context menu API should work with the changes described above. Review URL: http://codereview.chromium.org/2887013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51970 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for omnibox.onInputStarted and onInputCancelled.mpcomplete@chromium.org2010-07-021-18/+2
| | | | | | | | | | | | Also fix a bug where we'd keep an extension's old keyword even if it changed on upgrade/reload. BUG=46475 BUG=48091 Review URL: http://codereview.chromium.org/2807033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51540 0039d316-1c4b-4281-b951-d872f2087c98
* **Reapply change that caused build break in chromeos/arm**rogerta@google.com2010-07-011-0/+1
| | | | | | | | | | | Add support for RLZ chrome extension api. BUG=None TEST=See unit tests as part of this CL. Review URL: http://codereview.chromium.org/2864024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51326 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50977 - Add support for RLZ chrome extension api.sky@chromium.org2010-06-281-1/+0
| | | | | | | | | | | | BUG=NONE TEST=See unit tests as part of this CL. Review URL: http://codereview.chromium.org/2804010 TBR=rogerta@google.com Review URL: http://codereview.chromium.org/2835022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50979 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for RLZ chrome extension api.rogerta@google.com2010-06-281-0/+1
| | | | | | | | | BUG=NONE TEST=See unit tests as part of this CL. Review URL: http://codereview.chromium.org/2804010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50977 0039d316-1c4b-4281-b951-d872f2087c98
* Address some visual problems with the omnibox extension API:mpcomplete@chromium.org2010-06-211-0/+13
| | | | | | | | | | | | - Remove some of the boilerplate strings. - Allow the description field to be fully customizable and stylable. BUG=46478 BUG=46479 Review URL: http://codereview.chromium.org/2849015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50411 0039d316-1c4b-4281-b951-d872f2087c98
* Send WINDOW_ID_NONE in chrome.windows.onFocusChanged when all windows loose ↵rafaelw@chromium.org2010-06-161-0/+22
| | | | | | | | | | | | | focus. Note that this patch includes support for Views (Windows/chromeos) and GTK (Linux). I was going to do mac as well, but decided my objective-c skillz were too rusty. BUG=32932 TEST=none Review URL: http://codereview.chromium.org/2778001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49884 0039d316-1c4b-4281-b951-d872f2087c98
* Fix extension context menu API onclick handlers.asargent@chromium.org2010-06-041-3/+5
| | | | | | | | | | | | | | | | | | | | | | | I believe the following CL had accidentally broken them: http://src.chromium.org/viewvc/chrome?view=rev&revision=47972 I haven't yet added end-to-end tests for the context menu API that would catch problems like this, but I just created a bug for that (crbug.com/45811) and made the bug for bringing the API out of experimental blocked on it. I also fixed a small >80 chars style nit in this CL. BUG=45741 TEST=The onclick handler for an extension-added context menu item should now be called. See the bug for a minimal code snippet to put into a background page for this. Review URL: http://codereview.chromium.org/2626001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48936 0039d316-1c4b-4281-b951-d872f2087c98
* Change 'const' to 'var' in event_bindings.js for ECMAScript compatibility ↵ericdingle@chromium.org2010-06-031-5/+5
| | | | | | | | | | | reasons. BUG=None TEST=None Review URL: http://codereview.chromium.org/2444005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48843 0039d316-1c4b-4281-b951-d872f2087c98