summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Add Personal Stuff tab page to Options in Linux.mhm@chromium.org2009-06-203-6/+350
| | | | | | | | | | | Following the same approach as the general tab page.. BUG=11507 TEST=The Personal stuff tab is fully functioning, the prefs save correctly. Review URL: http://codereview.chromium.org/125105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18892 0039d316-1c4b-4281-b951-d872f2087c98
* Make gtk url picker and edit keyword view modal.mattm@chromium.org2009-06-202-5/+2
| | | | | | | | | | Don't like that GTK only does app-modal rather than window modal, but otherwise you can just close the parent window and crash when you then click okay on the dialog. BUG=11507 Review URL: http://codereview.chromium.org/141020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18887 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: HTTP Auth dialogs under linux.erg@google.com2009-06-192-0/+127
| | | | | | | | | | | | - Implements a ConstrainedWindowGtk which positions itself in the center of its corresponding TabContentsViewGtk. - Implements LoginPromptGtk. HTTP Auth now works under Linux. - Renames ConstrainedWindowImpl to ConstrainedWindowWin http://crbug.com/11512 Review URL: http://codereview.chromium.org/132047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18864 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix weird crasher in gtk_floating_container_forall by checking ↵erg@google.com2009-06-191-4/+4
| | | | | | | | | | more input and calling parent class forall. http://crbug.com/14485 Review URL: http://codereview.chromium.org/141004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18860 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ourselves as a message loop observer in the tabstrip destructor to ↵jhawkins@chromium.org2009-06-191-0/+4
| | | | | | | | | | catch the case when the user closes the last tab in a tabstrip. In this case, we add ourselves as a message loop observer and never get a chance to remove ourselves before the tabstrip is destroyed. BUG=14648 TEST=Open a new window and press the close button on the tab. The browser should not crash. Review URL: http://codereview.chromium.org/140006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18843 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: make import warning dialog modal.kuchhal@chromium.org2009-06-192-0/+2
| | | | | | | | | | | | Make ImporterHost aware of the current parent window and use that as parent for the warning dialog. BUG=13481 TEST=Start Firefox, try to import profile in Chrome and make sure the warning dialog is modal. Review URL: http://codereview.chromium.org/131080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18816 0039d316-1c4b-4281-b951-d872f2087c98
* Implement window open disposition for (some) navigation buttons.estade@chromium.org2009-06-194-5/+52
| | | | | | | | | | still need to do similar for link buttons and such. BUG=14518 Review URL: http://codereview.chromium.org/131071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18786 0039d316-1c4b-4281-b951-d872f2087c98
* Don't treat underscores as mnemonics in the bookmark bar.estade@chromium.org2009-06-191-2/+21
| | | | | | | | | BUG=14438 TEST=see bug Review URL: http://codereview.chromium.org/132049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18785 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 18730 in attempt to repair Linux UI build bustage.jar@chromium.org2009-06-192-47/+9
| | | | | | | tbr=tc Review URL: http://codereview.chromium.org/132055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18782 0039d316-1c4b-4281-b951-d872f2087c98
* Render the dragged tab contents when detaching a tab from the tabstrip in gtk.jhawkins@chromium.org2009-06-193-19/+145
| | | | | | | | BUG=none TEST=Drag a tab out of the tabstrip. If the WM has compositing enabled, the dragged tab contents should be translucent; otherwise, the contents should be opaque. Review URL: http://codereview.chromium.org/131042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18780 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Load icons with gdk instead of using PNGDecoder.estade@chromium.org2009-06-191-17/+2
| | | | | | | | BUG=14487 Review URL: http://codereview.chromium.org/131058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18779 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up BrowserWindowGtk constructor.estade@chromium.org2009-06-192-93/+104
| | | | | | Review URL: http://codereview.chromium.org/131062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18778 0039d316-1c4b-4281-b951-d872f2087c98
* Linux crash fix.kuchhal@chromium.org2009-06-191-9/+26
| | | | | | | | | | | | If no browser profile is found from which we can import, disable the import button. This was not problem on Windows since we always had IE. BUG=14489 TEST=Rename your Firefox profile dir (~/.mozilla/firefox) and make sure that the import button is disabled on the import dialog box. Review URL: http://codereview.chromium.org/131075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18777 0039d316-1c4b-4281-b951-d872f2087c98
* Handle middle click on gtk tab close button.mattm@chromium.org2009-06-192-0/+19
| | | | | | | | | BUG=14636 TEST=middle click on tab close button, left click on tab close button Review URL: http://codereview.chromium.org/131072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18776 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug where the window would not be shaped properly whentc@google.com2009-06-181-0/+1
| | | | | | | | | | | | | | dragging a new tab out. It would sometimes not be shaped properly when opening a new window. The code to update the window frame looks to see if the window is maximized. state_ contains information as to whether or not we're maximized, but it wasn't set yet resulting in a UMR. Review URL: http://codereview.chromium.org/131079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18773 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tab strip paint regression for tabs other than the first tab.tc@google.com2009-06-181-1/+1
| | | | | | | | | | X is already offset when we call SetBounds, so we only need to handle y offset. Review URL: http://codereview.chromium.org/131073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18767 0039d316-1c4b-4281-b951-d872f2087c98
* Make the tabstrip transparent (doesn't paint a background) bytc@google.com2009-06-184-31/+8
| | | | | | | | | | | | | | turning the window off for the gtk_fixed that represents the tabstrip. For some reason, this caused the tabs to render relative to the top of the window, so adjust the tab painting via the event area offset. BUG=13789 Review URL: http://codereview.chromium.org/131069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18762 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a comment I meant to update in the last change.tc@google.com2009-06-181-1/+1
| | | | | | | | | TBR=evan Review URL: http://codereview.chromium.org/131063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18750 0039d316-1c4b-4281-b951-d872f2087c98
* Paint the custom frame border and round the corners.tc@google.com2009-06-183-15/+104
| | | | | | | | | | | | We apply the theme background color to the window and use a NineBox to draw the theme images around the border. BUG=13430 Review URL: http://codereview.chromium.org/131049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18748 0039d316-1c4b-4281-b951-d872f2087c98
* Add helper for forcing a GtkEntry to lowercase.mattm@chromium.org2009-06-181-3/+22
| | | | | | | | | | Make l10n_util::ToLower string16 friendly. BUG=13326 Review URL: http://codereview.chromium.org/126260 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18742 0039d316-1c4b-4281-b951-d872f2087c98
* Set the gtk drag icon to a 1x1 transparent pixbuf so we don't get the ↵jhawkins@chromium.org2009-06-181-0/+8
| | | | | | | | | | default drag icon. BUG=none TEST=Drag a tab out of the tabstrip. The default gtk drag icon should not be visible. Review URL: http://codereview.chromium.org/131043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18734 0039d316-1c4b-4281-b951-d872f2087c98
* Elide the URL in the status bubble.tc@google.com2009-06-182-9/+47
| | | | | | | | | | I copied the logic about whether to show the loading status or URL from the Views code. Review URL: http://codereview.chromium.org/125267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18730 0039d316-1c4b-4281-b951-d872f2087c98
* Fix options window for Personalization on Linux.zork@chromium.org2009-06-181-1/+1
| | | | | | Review URL: http://codereview.chromium.org/132028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18728 0039d316-1c4b-4281-b951-d872f2087c98
* Add gtk EditKeywordController.mattm@chromium.org2009-06-182-0/+306
| | | | | | | | BUG=13326 Review URL: http://codereview.chromium.org/126305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18727 0039d316-1c4b-4281-b951-d872f2087c98
* Add tools menu for bookmark manager gtk.estade@chromium.org2009-06-182-7/+149
| | | | | | | | | | Now you can import and export an .html file with your bookmarks in it. BUG=13110 Review URL: http://codereview.chromium.org/132006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18719 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the tab overview button to the tab strip.sky@chromium.org2009-06-172-0/+51
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/125262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18651 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes bug where creating new tabs on linux would momentarily flash thesky@chromium.org2009-06-171-0/+4
| | | | | | | | | | | | | | | new tab on the left edge of the strip. We don't have this bug on windows because the tab strip isn't painted until after the animation progresses. BUG=none TEST=on linux create new tabs by way of control-t (or plus button), make sure you don't get the new tab to momentarily appear on the left edge. Review URL: http://codereview.chromium.org/126240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18650 0039d316-1c4b-4281-b951-d872f2087c98
* gtk fullscreen fixes.estade@chromium.org2009-06-172-9/+31
| | | | | | | | | http://crbug.com/13999 TEST=when you fullscreen, it should be impossible to see any of the following: frame, tabstrip, tool bar, bookmark bar. Review URL: http://codereview.chromium.org/125230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18582 0039d316-1c4b-4281-b951-d872f2087c98
* gtk bookmark bar: Initialize a member variable.estade@chromium.org2009-06-171-0/+1
| | | | | | | | | http://crbug.com/14067 TEST=open browser, click on other bookmarks button. It should work on the first try. Review URL: http://codereview.chromium.org/126249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18578 0039d316-1c4b-4281-b951-d872f2087c98
* gtk: Make sure icon is right size in download item.estade@chromium.org2009-06-171-5/+18
| | | | | | | | | | This results in kind of an ugly icon sometimes. When we get SVG support the number of ugly cases should go down. http://crbug.com/13791 Review URL: http://codereview.chromium.org/126245 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18575 0039d316-1c4b-4281-b951-d872f2087c98
* GTK bookmark bar: only animate when user changes the pref (not, for example, ↵estade@chromium.org2009-06-164-13/+24
| | | | | | | | | | | on startup). TEST=set bookmark bar open, restart chrome, bookmark bar should just be open (no animation) BUG=none Review URL: http://codereview.chromium.org/125223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18560 0039d316-1c4b-4281-b951-d872f2087c98
* Gtk bookmark manager: add search + recently added nodes.estade@chromium.org2009-06-162-56/+251
| | | | | | Review URL: http://codereview.chromium.org/125220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18546 0039d316-1c4b-4281-b951-d872f2087c98
* Improved tab overview animations with better animation and wiring tosky@chromium.org2009-06-162-0/+11
| | | | | | | | | | | message loop. BUG=none TEST=none Review URL: http://codereview.chromium.org/126185 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18523 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce header dependencies in chrome/browser/phajdan.jr@chromium.org2009-06-1618-25/+35
| | | | | | | | In my scan of headers I got up to browser/gtk/ Review URL: http://codereview.chromium.org/126131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18500 0039d316-1c4b-4281-b951-d872f2087c98
* Bookmark dragging cleanup.estade@chromium.org2009-06-163-26/+33
| | | | | | | | | | | | | | | | | bookmark bar: - re-show on buttons when done dragging - match g_object_ref in drag-begin with g_object_unref in drag-end bookmark manager: - get rid of default tree view drag handling (we override it all anyway, and it was causing problems) - fix index out of bounds crash - when you drag onto a folder, add it at the end of the folder rather than the beginning. TEST=single bookmark dragging should be fully functional, non crashing BUG=14019 Review URL: http://codereview.chromium.org/126163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18463 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bustage caused by last change. enumeration changed name and got rid of ↵ben@chromium.org2009-06-161-2/+2
| | | | | | | | | | | _DELEGATE. BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/126176 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18456 0039d316-1c4b-4281-b951-d872f2087c98
* Upgrade BackForwardMenuModelViews to use new menu API. Also adds accelerator ↵ben@chromium.org2009-06-151-9/+2
| | | | | | | | | | | | to the "Show Full History" item. This requires bringing the owner-draw system for native menus over from the old code. I haven't really changed anything in it other than the format of dwItemData. This code could be improved/simplified by using gfx::Canvas more, but don't want to do it here. BUG=none TEST=make sure BackForwardMenuModel tests still pass, test the menu functionality in the toolbar. Review URL: http://codereview.chromium.org/126092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18454 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the PlatformContext layer to have only one class.brettw@chromium.org2009-06-144-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Previously we had three classes of PlatformCanvas*, one for each platform. Then we had a typedef of PlatformContext to PlatformCanvas[Mac|Win|Linux] for the specific platform. This means that it was almost impossible to forward-declare PlatformCanvas and there were a bunch of unnecessary includes of platform_canvas.h in header files. This change makes there be only one platform_canvas.h header with ifdefs, which removes a decent amount of duplicated code. There is a platform-independent file, and one platform-dependent file of platform_canvas for each platform. I also renamed PlatformDevice[Mac|Win|Linux] to PlatformDevice, althouth in this case I kept the separate headers since there was much less overlap. I also broke out CanvasPaint into separate headers so this template doesn't need to be included all over the project (only a couple of files actually need it). Review URL: http://codereview.chromium.org/125109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18363 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce header dependencies in browser/phajdan.jr@chromium.org2009-06-135-0/+5
| | | | | | | | | | | | - remove unneeded header includes - move implementation bits out of headers - more explicit header deps In my scan of headers I got up to (including) dom_ui. Review URL: http://codereview.chromium.org/126071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18353 0039d316-1c4b-4281-b951-d872f2087c98
* gtk bookmark manager:estade@chromium.org2009-06-132-26/+76
| | | | | | | | | | | | - Implement list view activation. - Fix a crasher. TEST=double click on something in the right pane (folder or bookmark) http://crbug.com/13110 Review URL: http://codereview.chromium.org/126084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18344 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Fix refresh accelerators.estade@chromium.org2009-06-131-6/+3
| | | | | | | | | by Jacob Mandelson <jacob@mandelson.org> original review: http://codereview.chromium.org/127001 Review URL: http://codereview.chromium.org/125093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18342 0039d316-1c4b-4281-b951-d872f2087c98
* Make findbar paint themed image.estade@chromium.org2009-06-135-29/+81
| | | | | | | | | | | | | Also, fixed drawing of background images that are not 1 pixel wide. (The code for this is somewhat speculative as there is no way of testing it at the moment, but for now it should still at least look correct.) If you open the findbar while the bookmark bar is opened and then close the bookmark bar, the findbar painting is a little messed up in that it still thinks it's farther away from the tabstrip than it really is. The solution (unfortunately) is to continuously repaint the findbar as it is closing. Since this is glitch is hardly noticeable, I'm putting off fixing it. TEST=findbar should look more integrated with bookmark bar, toolbar. BUG=none Review URL: http://codereview.chromium.org/125084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18339 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug where both restore and maximize buttons were showing aftertc@google.com2009-06-121-1/+1
| | | | | | | | | | | toggling window manager decorations on/off. TBR=estade Review URL: http://codereview.chromium.org/125090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18334 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the titlebar code into its own class because it's getting bigtc@google.com2009-06-126-278/+387
| | | | | | | | | | | | | | | and cluttering up browser_window_gtk. Fix a small painting bug when a menu is drawn over the titlebar background. Also move the tab strip context menu into the titlebar background container by adding an event box. Now the context menu appears e.g., below the min/max/close buttons or above the tab strip. Review URL: http://codereview.chromium.org/125078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18328 0039d316-1c4b-4281-b951-d872f2087c98
* Use a bool instead of disconnecting/reconnecting the changedtc@google.com2009-06-122-11/+11
| | | | | | | | | signal handler. I don't really care one way or the other :) Review URL: http://codereview.chromium.org/118518 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18327 0039d316-1c4b-4281-b951-d872f2087c98
* Fix themed toolbar drawing following tabstrip changes.estade@chromium.org2009-06-127-13/+46
| | | | | | | | | | | The code should also be more robust to future changes. BUG=none TEST=active tab blends into toolbar Review URL: http://codereview.chromium.org/126013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18319 0039d316-1c4b-4281-b951-d872f2087c98
* Changing the focus manager to not subclass HWNDs (but for the ↵jcampan@chromium.org2009-06-122-0/+5
| | | | | | | | top-windows).Components that have HWND now need to specifically let the FocusManager know when they get the native focus.This is the reason for the new GotFocus() notification on the RenderWidgetHostViewWin class.BUG=NoneTEST=Run the interactive tests, the unit-tests. Test that the focus is remembered correctly when switching windows, switching tabs. Test that focus traversal in the browser and in the option dialog works as expected. Review URL: http://codereview.chromium.org/122002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18301 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Change BlockedPopupContainerView to a cairo implementation.erg@google.com2009-06-121-42/+43
| | | | | | | | http://crbug.com/12843 Review URL: http://codereview.chromium.org/126017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18285 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: fix icon theme double free on shutdown by eliminating dupes from icon ↵estade@chromium.org2009-06-112-10/+4
| | | | | | | | | | theme array. Simplify some code in DownloadItemGtk that I previously thought was related to the crash, and so had made complicated. Review URL: http://codereview.chromium.org/124001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18222 0039d316-1c4b-4281-b951-d872f2087c98
* UI tweaks for the tab strip on linux.sky@chromium.org2009-06-112-2/+18
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/125012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18219 0039d316-1c4b-4281-b951-d872f2087c98