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

Issue 386021: Add support for observing tracking areas so that when tabs are moved undernea... (Closed)

Created:
11 years, 1 month ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Add support for observing tracking areas so that when tabs are moved underneath our cursor, we highlight them correctly. BUG=27458, 13208, 21448 TEST=Create a pile of tabs. Select a middle one. Put your cursor in some other tab. Hit cmd-w a couple of times Watch to make sure highlights occur correctly in both the tabs and the close buttons. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31814

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -3 lines) Patch
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 5 chunks +49 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/tab_view.mm View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dmac
Polishing away under the direct supervision of Mr. Cole.
11 years, 1 month ago (2009-11-12 18:55:53 UTC) #1
rohitrao (ping after 24h)
Does this fix http://code.google.com/p/chromium/issues/detail?id=13208 and http://code.google.com/p/chromium/issues/detail?id=21448 ?
11 years, 1 month ago (2009-11-12 19:00:44 UTC) #2
dmac
On 2009/11/12 19:00:44, rohitrao wrote: > Does this fix http://code.google.com/p/chromium/issues/detail?id=13208 and > http://code.google.com/p/chromium/issues/detail?id=21448 ? It ...
11 years, 1 month ago (2009-11-12 19:19:13 UTC) #3
pink (ping after 24hrs)
I don't quite follow why the event synthesis is needed if you already have the ...
11 years, 1 month ago (2009-11-12 19:25:56 UTC) #4
dmac
New version up. We need to track the close box separately because mousemoved events are ...
11 years, 1 month ago (2009-11-12 19:49:33 UTC) #5
pink (ping after 24hrs)
11 years, 1 month ago (2009-11-12 19:59:37 UTC) #6
LGTM with some comments

http://codereview.chromium.org/386021/diff/3003/3004
File chrome/browser/cocoa/tab_strip_controller.mm (right):

http://codereview.chromium.org/386021/diff/3003/3004#newcode1199
Line 1199: // Update our hover states.
implies that there are hover states in the tab strip, which there aren't. You
can probably just omit this comment now given the function comment.

http://codereview.chromium.org/386021/diff/3003/3005
File chrome/browser/cocoa/tab_view.mm (right):

http://codereview.chromium.org/386021/diff/3003/3005#newcode106
Line 106: NSString *name = nil;
NSString* name

http://codereview.chromium.org/386021/diff/3003/3005#newcode107
Line 107: if (NSPointInRect(hoverPoint_, [closeButton_ frame])) {
worth abstracting this into a helper? looks almost the same as the code below.

Powered by Google App Engine
This is Rietveld 408576698