summaryrefslogtreecommitdiffstats
path: root/chrome/browser
Commit message (Collapse)AuthorAgeFilesLines
* Add quota support.jorlow@chromium.org2009-10-034-7/+12
| | | | | | | | | | | Add a 5mb quota to DOM Storage. Most of the details are in an upstream patch (https://bugs.webkit.org/show_bug.cgi?id=29991 ). BUG=16876 TEST=I added a layout test upstream and it works. Review URL: http://codereview.chromium.org/255050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27942 0039d316-1c4b-4281-b951-d872f2087c98
* More WebView / WebViewDelegate cleanup.darin@chromium.org2009-10-036-9/+9
| | | | | | | | | | | | Moves a bunch of methods from glue to the WebKit API. R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/246079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27941 0039d316-1c4b-4281-b951-d872f2087c98
* Move the clipboard stuff out of base and into app/clipboard. I renamedbrettw@chromium.org2009-10-0316-28/+79
| | | | | | | | | | | clipboard_util to clipboard_util_win since it's Windows-only. This patch makes test_shell depend on app as well. There should be no logic change. TEST=none BUG=none Review URL: http://codereview.chromium.org/260003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27937 0039d316-1c4b-4281-b951-d872f2087c98
* Gtk: Update slide animation progress in a cleaner way.estade@chromium.org2009-10-032-22/+6
| | | | | | | | | BUG=none TEST=animations still work: infobar, findbar, download shelf Review URL: http://codereview.chromium.org/255071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27934 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a build error in the jumplist to use the new png codec location.brettw@chromium.org2009-10-031-3/+3
| | | | | | | TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27933 0039d316-1c4b-4281-b951-d872f2087c98
* Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classesbrettw@chromium.org2009-10-0331-91/+87
| | | | | | | | | | | | | | | into the gfx namespace. Combine the PNGEncoder and PNGDecoder. There were separate when we had different executables for the browser and renderer, and linked the encoder only in one of them (which saved us some space used by libpng). This hasn't been the case for years, so combining them (again) makes sense. TEST=none BUG=none Review URL: http://codereview.chromium.org/243076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27930 0039d316-1c4b-4281-b951-d872f2087c98
* Pass unhandled keyup messages coming in from the renderer to the underlying ↵ananta@chromium.org2009-10-032-9/+5
| | | | | | | | | | | | | | | | | | | view. This is needed for system keyboard messages which are generated when the Alt key is pressed in addition to other keys to function correctly in ChromeFrame. The TabContentsView implementation for windows does the right thing by specifically checking for keydown events before processing them as accelerators. The TabContentsView implementation for Linux also treated keyup messages as accelerators, which is now fixed. This fixes parts of http://code.google.com/p/chromium/issues/detail?id=22996 Bug=22996 Review URL: http://codereview.chromium.org/255028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27926 0039d316-1c4b-4281-b951-d872f2087c98
* Try again to check in the badge stuff.aa@chromium.org2009-10-033-3/+123
| | | | | | TBR=erikkay@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27925 0039d316-1c4b-4281-b951-d872f2087c98
* Add histograms that track how long it takes to open the new tab page.tony@chromium.org2009-10-026-8/+68
| | | | | | | | | | | | | | | This doesn't time all loads of the new tab page, just new foreground tabs using ctrl+t or the plus button. This includes the time it takes to create the tab contents and logs the time until JS has started executing, domcontentloaded, and onload. Note: onload doesn't mean the page is done loading. We have "NewTabUI load" for that. BUG=23120 Review URL: http://codereview.chromium.org/242107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27918 0039d316-1c4b-4281-b951-d872f2087c98
* Set the default action of the import data dialog to "Import" andtony@chromium.org2009-10-021-0/+3
| | | | | | | | | | focus the button. BUG=19627 Review URL: http://codereview.chromium.org/259028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27916 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my revert because it causes more problems.nsylvain@chromium.org2009-10-022-34/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27912 0039d316-1c4b-4281-b951-d872f2087c98
* revert this change because protoc.exe crashes during compile and breaks the ↵nsylvain@chromium.org2009-10-022-1/+34
| | | | | | | | | | | | | try servers: Set the LITE runtime optimization flag in sync.proto. This generates c++ code without support for protobuf reflections, and shaves 175000 bytes off of the final release size of syncapi.dll. Review URL: http://codereview.chromium.org/242133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27910 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling the test while I figure out why it is flaky.finnur@chromium.org2009-10-021-1/+1
| | | | | | | | | | And update the version number (forgot in my last changelist). No code change there. TBR=nsylvain Review URL: http://codereview.chromium.org/255066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27906 0039d316-1c4b-4281-b951-d872f2087c98
* Disabling a filing test temporarily.jcampan@chromium.org2009-10-021-1/+2
| | | | | | | | | TEST=None BUG=23683 TBR=cpu Review URL: http://codereview.chromium.org/257040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27905 0039d316-1c4b-4281-b951-d872f2087c98
* Find-in-bar would steal focus when switching tab.jcampan@chromium.org2009-10-022-2/+38
| | | | | | | | BUG=23296 TEST=See bug. Review URL: http://codereview.chromium.org/243073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27901 0039d316-1c4b-4281-b951-d872f2087c98
* We now postMessage the RSS file over to the js script and have it parse it ↵finnur@chromium.org2009-10-021-28/+44
| | | | | | | | | | there in the context of the iframe instead of doing this in the extension html page. BUG=None TEST=Covered by automated tests. Review URL: http://codereview.chromium.org/246066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27898 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using radio buttons for toggling the custom frame. Usetony@chromium.org2009-10-023-23/+55
| | | | | | | | | | title case for the context menu on the title bar. BUG=23412 Review URL: http://codereview.chromium.org/255059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27896 0039d316-1c4b-4281-b951-d872f2087c98
* Use IDS_THEME_INSTALL_INFOBAR_UNDO_BUTTON instead of IDS_UNDO since 3.0tony@chromium.org2009-10-021-7/+1
| | | | | | | | shipped. Review URL: http://codereview.chromium.org/257036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27895 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compile failure due to bad merge.pkasting@chromium.org2009-10-021-5/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27893 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Clear() function to MRUCache. This will be useful in my MemoryPurger ↵pkasting@chromium.org2009-10-023-4/+15
| | | | | | | | | | class. Technically you can call ShrinkToSize(0), but that's both less clear and slower. BUG=23400 TEST=none Review URL: http://codereview.chromium.org/257024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27892 0039d316-1c4b-4281-b951-d872f2087c98
* Make usage of iterator types more consistent, which also saves some code.pkasting@chromium.org2009-10-022-44/+33
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/243072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27891 0039d316-1c4b-4281-b951-d872f2087c98
* Convert users of RenderProcessHost iterator to all use same style. The key ↵pkasting@chromium.org2009-10-0211-40/+32
| | | | | | | | | | | | | | motivator for this is that at least one old place actually did the wrong thing in its loop and failed to call functions on anything but the first host. This also makes many places slightly shorter. Remove an unneeded #include in web_cache_manager.h by converting it to a forward declaration. Update copyrights on touched files. BUG=none TEST=none Review URL: http://codereview.chromium.org/242104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27890 0039d316-1c4b-4281-b951-d872f2087c98
* Add simple popup support to browser actions. This will create a popup HTML ↵erikkay@chromium.org2009-10-0215-56/+454
| | | | | | | | | | | window that extends below a browser action button when the browser is clicked. When it loses focus, it is automatically dismissed. BUG=23596 TEST=none Review URL: http://codereview.chromium.org/258011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27889 0039d316-1c4b-4281-b951-d872f2087c98
* Do not discount a MANUAL_SUBFRAME load just because it involveddarin@chromium.org2009-10-022-9/+17
| | | | | | | | | | | | some redirects. R=brettw BUG=21353 TEST=none Review URL: http://codereview.chromium.org/246073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27887 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Change Omnibox to select-all on mouse-up if the mouse didn't move.shess@chromium.org2009-10-022-0/+108
| | | | | | | | | | | | | | | This is to match Windows... http://crbug.com/22980 TEST=When Omnibox has focus, everything should work identically. TEST=Put focus in content. Single-click in Omnibox should select-all on mouse-up. TEST=Put focus in content. Click-drag in Omnibox should select text like normal. TEST=Put focus in content. Double-click should select-all on first mouse-up, but select-word on next click. TEST=Same test for triple-click. Review URL: http://codereview.chromium.org/243063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27885 0039d316-1c4b-4281-b951-d872f2087c98
* Support multiple EOL types in Privacy Blacklistsidanan@google.com2009-10-021-2/+3
| | | | | | | | | | BUG=16932 TEST=none TBR=maruel Review URL: http://codereview.chromium.org/251078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27884 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Check CreateNewTempDirectory return value.mattm@chromium.org2009-10-021-4/+6
| | | | | | | | | | CID=6021,6020,6019 TEST=none BUG=none Review URL: http://codereview.chromium.org/256033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27881 0039d316-1c4b-4281-b951-d872f2087c98
* The focus would only be restored properly the first time thejcampan@chromium.org2009-10-023-183/+233
| | | | | | | | | | | find-in-bar box was closed. Also wrote an interactive ui test and took the opportunity to convert the existing find-in-bar interactive ui test to be a browser test. BUG=23599 TEST=See bug. Review URL: http://codereview.chromium.org/251064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27875 0039d316-1c4b-4281-b951-d872f2087c98
* Add an option to disable NaCl at compile time for platforms where it doesn't ↵piman@chromium.org2009-10-022-1/+9
| | | | | | | | | | build yet Just add disable_nacl=1 to gyp defines Review URL: http://codereview.chromium.org/257029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27873 0039d316-1c4b-4281-b951-d872f2087c98
* Any time we are shutting down a tab, try to use fast shutdown.estade@chromium.org2009-10-0213-89/+220
| | | | | | | | | BUG=http://crbug.com/5638 TEST=existing tab strip model tests, Fast shutdown ui tests, new tab strip model fast shutdown test Review URL: http://codereview.chromium.org/235050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27865 0039d316-1c4b-4281-b951-d872f2087c98
* Fix several issues with dragging tabs and quickly letting go, including ↵pinkerton@chromium.org2009-10-021-15/+45
| | | | | | | | | | crashes because we get mouseDragged "events" after mouseUp, windows that stay transucent, and windows that vanish entirely but stay in the window list. BUG=22266, 13594, 22538 TEST=dragging tabs between windows should still work Review URL: http://codereview.chromium.org/243080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27861 0039d316-1c4b-4281-b951-d872f2087c98
* gtk: Restore the window that is hidden when the last tab is dragged out of ↵jhawkins@chromium.org2009-10-022-6/+21
| | | | | | | | | | the window. BUG=21002 TEST=Drag the last tab out of a window and press esc. The window should be restored. Review URL: http://codereview.chromium.org/257026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27853 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my attempt at cleaning up RenderViewHost::UnhandledKeyboardEvent in ↵jam@chromium.org2009-10-021-2/+10
| | | | | | | | | | my previous patch. Looks like the check is needed because otherwise KeyUp triggers the accelerator a second time. BUG=23260 TBR=craig.schlenter Review URL: http://codereview.chromium.org/246078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27852 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the NewTabUI load UMA metric.tony@chromium.org2009-10-022-9/+20
| | | | | | | | | | | We were attaching the paint observer to the a RenderWidgetHost that was getting immediately swapped out when the new tab page started to load. Instead, wait and use the DOM UI callback methods which happen right after NewTabUI is created. Review URL: http://codereview.chromium.org/242115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27850 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: test that scopes can be epxandedyurys@google.com2009-10-021-0/+7
| | | | | | Review URL: http://codereview.chromium.org/258016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27849 0039d316-1c4b-4281-b951-d872f2087c98
* Restore plumbing for the spelling panel on Mac.darin@chromium.org2009-10-022-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | It turns out this is reached through a very awkward code path. We send an IPC to the renderer so that it can call WebFrame::executeCommand passing it the "ToggleSpellingPanel" command. That is intercepted in our code--in WebFrameImpl--and results in calling a method on Editor that just turns around and calls EditorClient. EditorClient is again our code, which just pokes the embedder via WebViewClient to get it to send an IPC back to the browser so that it can show the spelling panel. I would have just short-circuited all of this plumbing if it weren't for the side-effect that this code has of triggering an update to the spelling panel. That way it can show the correct word. I think that could be done a simpler way, but for now, I'm content to just restore the way things were. R=pinkerton BUG=23543 TEST=manual test: right click on a misspelled word and select the option on Mac Chrome to show the spelling panel. you should see it appear :) Review URL: http://codereview.chromium.org/246071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27848 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NTP so that it updates on theme change.mirandac@chromium.org2009-10-022-5/+15
| | | | | | | | | | BUG= http://crbug.com/20392 TEST= Open several windows and new tabs. Change theme. Note that NTP background images all update correctly. Review URL: http://codereview.chromium.org/243067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27841 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: reenable step-out test as issues causing its failure on linux was ↵yurys@google.com2009-10-021-1/+1
| | | | | | | | | fixed in WebKit r48970 TBR=pfeldman Review URL: http://codereview.chromium.org/256039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27837 0039d316-1c4b-4281-b951-d872f2087c98
* Convert history to use new sql wrappers. Enhance wrappers in several ways tobrettw@chromium.org2009-10-0236-1271/+1033
| | | | | | | | | | support the needs of history. BUG=none TEST=covered by unit tests Review URL: http://codereview.chromium.org/246053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27832 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Remove unnecessary GetPasswordFormAt call.mattm@chromium.org2009-10-021-1/+0
| | | | | | | | | | CID=6161 BUG=none TEST=none Review URL: http://codereview.chromium.org/242108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27826 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Check GetInteger & GetBoolean return.mattm@chromium.org2009-10-021-2/+2
| | | | | | | | | | CID=5937,5838 BUG=none TEST=none Review URL: http://codereview.chromium.org/255051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27825 0039d316-1c4b-4281-b951-d872f2087c98
* Add some initial code for the top sites service. This will be a replacement forbrettw@chromium.org2009-10-024-0/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | the thumbnail database, and will also replace the ThumbnailStore which was the previous replacement we didn't ship. This component will be very much like the ThumbnailStore wtih the addition of the actual most visited data (not just thumbnails) and that it is threadsafe. This class is designed to be called on any thread. When it is complete, thumbnails will be added to it from the UI thread of the browser. Requests for thumbnails and the most visited data can be serviced directly on the I/O thread without going through the UI thread, and since the data is cached, the request won't also have to go through the history thread. The current state is that it cqan store and update the the most visited list and thumbnails. There are unit tests covering this behavior. I also added support for redirect ranking to ThumbnailScore. This is to duplicated the ranking function in history currently, where it prefers thumbnails closer to the end of a redirect chain. Since we won't be using the history service and are only storing thumbnails for the most visited items, we have to track the redirect index ourselves. BUG=none TEST=covered by unit tests (hopefully!) Review URL: http://codereview.chromium.org/251002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27824 0039d316-1c4b-4281-b951-d872f2087c98
* For some reason, if the interactive test that I added runs after inprocess ↵jam@chromium.org2009-10-022-41/+37
| | | | | | | | | | tests (still in interactive tests), it gives an assert in Linux before it starts because the existing process count is 2. Moving it to a different file solves the prolbem. TBR=jcampan BUG=5496 Review URL: http://codereview.chromium.org/259010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27823 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix the Linux views buildjam@chromium.org2009-10-021-2/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27822 0039d316-1c4b-4281-b951-d872f2087c98
* Set the LITE runtime optimization flag in sync.proto.nick@chromium.org2009-10-022-34/+1
| | | | | | | | | | | This generates c++ code without support for protobuf reflections, and shaves 175000 bytes off of the final release size of syncapi.dll. BUG=none TEST=tested sync interactively with two clients. Review URL: http://codereview.chromium.org/249034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27818 0039d316-1c4b-4281-b951-d872f2087c98
* Add Profile::DeleteSpellChecker(), which my MemoryPurger will use to purge ↵pkasting@chromium.org2009-10-024-58/+57
| | | | | | | | | | | | | | the spellchecker objects from memory. This reworks the SpellChecker management functions inside the ProfileImpl for simplicity. The only notable side effect is that GetSpellChecker() will now cause a notification if it inits |spellchecker_|, just like ReinitializeSpellChecker() already did. This was just to simplify the code; at the point this fires, no one will be listening yet, so it won't actually do anything. Also use a temporary at one spot in browser_render_process_host.cc instead of calling a heavyweight function twice in a row. BUG=23400 TEST=none Review URL: http://codereview.chromium.org/259009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27816 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback broken change, again.aa@chromium.org2009-10-023-123/+3
| | | | | | TBR=erikkay@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27815 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send tab switching/killing/creating keyboard accelerators to pages. ↵jam@chromium.org2009-10-0224-30/+197
| | | | | | | | | | This avoids tabs maliciously preventing closing using ctrl+f4/ctrl+w/alt+f4, and also hung/slow renderers from making tab cycling sluggish. BUG=5496 TEST=added ui test Review URL: http://codereview.chromium.org/224023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27814 0039d316-1c4b-4281-b951-d872f2087c98
* Check in http://codereview.chromium.org/259004 again.aa@chromium.org2009-10-023-3/+123
| | | | | | | | First cut at badge implementation. TBR=erikkay@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27812 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Read/Write lock with a plain old chrome lock.chron@chromium.org2009-10-023-261/+68
| | | | | | | | BUG=19895 Review URL: http://codereview.chromium.org/246056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27811 0039d316-1c4b-4281-b951-d872f2087c98