diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 18:42:29 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 18:42:29 +0000 |
commit | 359a5bf69945cfe2cc0fce78e851bf50f48b270b (patch) | |
tree | cfd2aab36c7e63226fff23330b39e94907238755 /chrome/browser/gtk/tabs | |
parent | c57a65632f3e4cabc45f380b77d7141c7f9b0a27 (diff) | |
download | chromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.zip chromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.tar.gz chromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.tar.bz2 |
Add the ability to resize the window when over the custom frame.
I also switched from 3px borders to 4px borders because that's what they are
on windows. On linux, the borders look bigger because our webcontent area
doesn't drop a shadow.
For this to work for resizing on top, I had to remove the event box from
the browser titlebar and move the mouse event handling to the window.
BUG=14645
Review URL: http://codereview.chromium.org/140026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs')
-rwxr-xr-x | chrome/browser/gtk/tabs/tab_renderer_gtk.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc index 2408d55..b4456de 100755 --- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc @@ -515,10 +515,9 @@ void TabRendererGtk::PaintTab(GdkEventExpose* event) { return; // The tab is rendered into a windowless widget whose offset is at the - // coordinate [x(), y()]. Additionally, the parent widget is windowless, and - // it has an offset of event->area. Translate by these offsets so we can - // render at (0,0) to match windows rendering metrics. - canvas.TranslateInt(x(), y() + event->area.y); + // coordinate event->area. Translate by these offsets so we can render at + // (0,0) to match Windows' rendering metrics. + canvas.TranslateInt(event->area.x, event->area.y); Paint(&canvas); } |