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

Issue 882193003: Mac: Fix for janky tab dragging/reordering. (Closed)

Created:
5 years, 10 months ago by Andre
Modified:
5 years, 10 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@ValidationMessageBubble
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Fix for janky tab dragging/reordering. -[TabView drawRect:] was called repeatedly to unnecessarily update the glow that is not changing or should not have changed. 1. Selected tabs don't have glow, so don't redraw on mouseMoved. 2. When dragging an unselected tab, the mouse point relative to the tab view does not change, so no need to redraw the glow. 3. When a dragged unselected tab slides behind another tab, let the dragged tab keep the glow instead of the tab in front of it (this is a behavior change). I think this is the more correct behavior, and we never have to redraw tabs while dragging. BUG=452925 Committed: https://crrev.com/2dad4dfbdd6fbc846f09766a263739ea6f3439ed Cr-Commit-Position: refs/heads/master@{#313734}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fix for rsesek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_view.mm View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Andre
Robert, please review.
5 years, 10 months ago (2015-01-28 23:40:35 UTC) #3
Robert Sesek
LGTM https://codereview.chromium.org/882193003/diff/20001/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h File chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h (right): https://codereview.chromium.org/882193003/diff/20001/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h#newcode65 chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h:65: // The tab being dragged, or nil if ...
5 years, 10 months ago (2015-01-29 16:13:06 UTC) #4
Andre
https://codereview.chromium.org/882193003/diff/20001/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h File chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h (right): https://codereview.chromium.org/882193003/diff/20001/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h#newcode65 chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h:65: // The tab being dragged, or nil if not ...
5 years, 10 months ago (2015-01-29 17:31:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882193003/60001
5 years, 10 months ago (2015-01-29 17:33:08 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 10 months ago (2015-01-29 18:07:50 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 18:08:50 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2dad4dfbdd6fbc846f09766a263739ea6f3439ed
Cr-Commit-Position: refs/heads/master@{#313734}

Powered by Google App Engine
This is Rietveld 408576698