Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Issue 126006: Review Request: fix issue 6223 -- issues on drag/drop tab (Closed)

Created:
11 years, 6 months ago by xji
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL fixes issue 6223 (comment #10 and #15). There are the following 3 issues: 1. the tab image in gray box is wrong in RTL locale. This is fixed by flipping canvas in RTL locale when draw those images. 2. dropped tab was not rendered in the correct position when gray box appears but the tab was not dropped inside the gray box. This is fixed by adjusting x coordinate of the dropped tab when there is dock information available in RTL in CompleteDrag(). 3. when chrome is maximized, drag/drop a tab to left/right window, then drag the tab through original main browser tabstrip and drop it anywhere else, dropped tab was not rendered in the right position. This is fixed by initialize window create point based on source_tabstrip_, not attached_tabstrip_, and move the initialization function from Attach() (since the position is no longer related to attached_tabstrip_) to CaptureDragInfo() where the mouse_offset_ is set. BUG=http://crbug.com/6223 TEST= 1. Open Hebrew Chrome, 2. drag a tab to the right of the screen till the gray box showed up, the tab image showed in the gray box should be similar to the tab image in Hebrew Chrome (not that in English Chrome), 3. drop the tab outside of the gray box while gray box is showing, the dropped tab should be rendered using the mouse click as the top-right corner (not top-left corner). 4. maximize chrome and open at least 2 tabs in it. 5. drag a tab out to left screen till the "left-half of screen" gray box showed up and drop it inside the gray box so that the tab was in the left-half of the screen and the original chrome browser is still maximized. 6. drag this tab back to the title of chrome (as if to re-insert it back to the maximized chrome's tabstrip) but do not release mouse, continue drag it back to somewhere on the screen and drop it. The dropped tab should be rendered using the mouse click as a point in its tabstrip (not rendered far away from the mouse click). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18401

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -10 lines) Patch
M chrome/browser/views/tabs/dragged_tab_controller.cc View 1 2 8 chunks +54 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
xji
11 years, 6 months ago (2009-06-11 22:09:30 UTC) #1
jungshik at Google
I'm deferring this to sky.
11 years, 6 months ago (2009-06-11 22:19:31 UTC) #2
jungshik at Google
http://codereview.chromium.org/126006/diff/5/6 File chrome/browser/views/tabs/dragged_tab_controller.cc (right): http://codereview.chromium.org/126006/diff/5/6#newcode496 Line 496: // are get from source_tabstrip_. So, we need ...
11 years, 6 months ago (2009-06-11 22:26:18 UTC) #3
sky
http://codereview.chromium.org/126006/diff/5/6 File chrome/browser/views/tabs/dragged_tab_controller.cc (right): http://codereview.chromium.org/126006/diff/5/6#newcode500 Line 500: Tab* first_tab = source_tabstrip_->GetTabAt(0); Are you sure we ...
11 years, 6 months ago (2009-06-11 22:39:43 UTC) #4
xji
http://codereview.chromium.org/126006/diff/5/6 File chrome/browser/views/tabs/dragged_tab_controller.cc (right): http://codereview.chromium.org/126006/diff/5/6#newcode500 Line 500: Tab* first_tab = source_tabstrip_->GetTabAt(0); I had a doubt ...
11 years, 6 months ago (2009-06-11 22:45:05 UTC) #5
xji
Yes, we should use tab 0 here. window_create_point_ is used to position *detached* tab, it ...
11 years, 6 months ago (2009-06-12 19:22:05 UTC) #6
sky
That makes sense. Thanks for the clarification. LGTM. -Scott On 2009/06/12 19:22:05, xji wrote: > ...
11 years, 6 months ago (2009-06-12 20:27:12 UTC) #7
jeremy
very nice! http://codereview.chromium.org/126006/diff/5/6 File chrome/browser/views/tabs/dragged_tab_controller.cc (right): http://codereview.chromium.org/126006/diff/5/6#newcode82 Line 82: int x_of_inactive_tab; For the sake of ...
11 years, 6 months ago (2009-06-12 21:08:25 UTC) #8
idana
LGTM (assuming the things Jeremy pointed out are addressed)
11 years, 6 months ago (2009-06-12 22:06:49 UTC) #9
xji
done On 2009/06/11 22:26:18, Jungshik Shin wrote: > http://codereview.chromium.org/126006/diff/5/6 > File chrome/browser/views/tabs/dragged_tab_controller.cc (right): > > ...
11 years, 6 months ago (2009-06-12 22:40:23 UTC) #10
xji
all done. On 2009/06/12 21:08:25, jeremy wrote: > very nice! > > http://codereview.chromium.org/126006/diff/5/6 > File ...
11 years, 6 months ago (2009-06-12 22:41:03 UTC) #11
jeremy
11 years, 6 months ago (2009-06-12 22:45:50 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld 408576698