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

Issue 7565007: Clicking tab close with option key close the other tabs. (Closed)

Created:
9 years, 4 months ago by bashi
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Clicking tab close with option key close the other tabs. BUG=91319 TEST=Open several tabs and click the close button of one of them with option key. Closes other tabs. TEST=Open several tabs and click the close button of one of them without option key. Closes the tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97828

Patch Set 1 #

Patch Set 2 : Using [NSApp currentEvent]. #

Total comments: 6

Patch Set 3 : Addressed rsesek's comments. #

Total comments: 1

Patch Set 4 : Using NSApp mock for test #

Total comments: 4

Patch Set 5 : Addressed rsesek's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -1 line) Patch
M chrome/browser/ui/cocoa/tabs/tab_controller.mm View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller_target.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm View 1 2 3 4 4 chunks +50 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
bashi
Hi, This CL might be not good but I couldn't come up with other way ...
9 years, 4 months ago (2011-08-03 15:09:57 UTC) #1
Robert Sesek
On 2011/08/03 15:09:57, bashik wrote: > Hi, > > This CL might be not good ...
9 years, 4 months ago (2011-08-03 15:25:56 UTC) #2
bashi
On 2011/08/03 15:25:56, rsesek wrote: > On 2011/08/03 15:09:57, bashik wrote: > > Hi, > ...
9 years, 4 months ago (2011-08-05 01:48:44 UTC) #3
Robert Sesek
I think you can do this without any ivars in -[TabView mouseUp:].
9 years, 4 months ago (2011-08-05 11:13:12 UTC) #4
bashi
Hi rsesek, On 2011/08/05 11:13:12, rsesek wrote: > I think you can do this without ...
9 years, 4 months ago (2011-08-08 05:24:25 UTC) #5
Robert Sesek
On 2011/08/08 05:24:25, bashik wrote: > Hi rsesek, > > On 2011/08/05 11:13:12, rsesek wrote: ...
9 years, 4 months ago (2011-08-08 15:38:18 UTC) #6
Peter Kasting
Drive-by: What about option-middle-clicking on tabs? Does that work the same way? Should it?
9 years, 4 months ago (2011-08-08 17:30:31 UTC) #7
Robert Sesek
On 2011/08/08 17:30:31, Peter Kasting wrote: > Drive-by: What about option-middle-clicking on tabs? Does that ...
9 years, 4 months ago (2011-08-08 21:49:54 UTC) #8
Peter Kasting
On 2011/08/08 21:49:54, rsesek wrote: > On 2011/08/08 17:30:31, Peter Kasting wrote: > > Drive-by: ...
9 years, 4 months ago (2011-08-08 21:54:43 UTC) #9
Robert Sesek
I just checked and implementing this properly should mean that middle click or the close ...
9 years, 4 months ago (2011-08-08 21:59:56 UTC) #10
Peter Kasting
On 2011/08/08 21:59:56, rsesek wrote: > I just checked and implementing this properly should mean ...
9 years, 4 months ago (2011-08-08 22:10:37 UTC) #11
bashi
On 2011/08/08 15:38:18, rsesek wrote: > Ok. You can still do this without ivars by ...
9 years, 4 months ago (2011-08-09 01:49:36 UTC) #12
Robert Sesek
What about the unit tests? http://codereview.chromium.org/7565007/diff/11003/chrome/browser/ui/cocoa/tabs/tab_controller.mm File chrome/browser/ui/cocoa/tabs/tab_controller.mm (right): http://codereview.chromium.org/7565007/diff/11003/chrome/browser/ui/cocoa/tabs/tab_controller.mm#newcode147 chrome/browser/ui/cocoa/tabs/tab_controller.mm:147: if ([[NSApp currentEvent] modifierFlags] ...
9 years, 4 months ago (2011-08-09 15:20:37 UTC) #13
bashi
Thank you for review. Added a unit test. http://codereview.chromium.org/7565007/diff/11003/chrome/browser/ui/cocoa/tabs/tab_controller.mm File chrome/browser/ui/cocoa/tabs/tab_controller.mm (right): http://codereview.chromium.org/7565007/diff/11003/chrome/browser/ui/cocoa/tabs/tab_controller.mm#newcode147 chrome/browser/ui/cocoa/tabs/tab_controller.mm:147: if ...
9 years, 4 months ago (2011-08-10 06:52:29 UTC) #14
Robert Sesek
http://codereview.chromium.org/7565007/diff/14001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm File chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm (right): http://codereview.chromium.org/7565007/diff/14001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm#newcode154 chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm:154: [controller setAction:@selector(closeOtherTabs:)]; I think this should really be testing ...
9 years, 4 months ago (2011-08-10 16:00:34 UTC) #15
bashi
On 2011/08/10 16:00:34, rsesek wrote: > I think this should really be testing that the ...
9 years, 4 months ago (2011-08-11 08:50:46 UTC) #16
Robert Sesek
On 2011/08/11 08:50:46, bashik wrote: > On 2011/08/10 16:00:34, rsesek wrote: > > I think ...
9 years, 4 months ago (2011-08-12 14:27:48 UTC) #17
bashi
Hi rsesek, Thank you for your kind reply. I'm on vacation so I'll try it ...
9 years, 4 months ago (2011-08-12 15:20:27 UTC) #18
bashi
On 2011/08/12 14:27:48, rsesek wrote: > On 2011/08/11 08:50:46, bashik wrote: > > On 2011/08/10 ...
9 years, 4 months ago (2011-08-17 10:11:26 UTC) #19
Robert Sesek
On 2011/08/17 10:11:26, bashik wrote: > This didn't work, too. I set a breakpoint at ...
9 years, 4 months ago (2011-08-18 00:31:49 UTC) #20
bashi
On 2011/08/18 00:31:49, rsesek wrote: > Bummer. Try [NSWindow sendEvent:]. If that doesn't work, the ...
9 years, 4 months ago (2011-08-18 02:22:33 UTC) #21
Robert Sesek
On 2011/08/18 02:22:33, bashik wrote: > On 2011/08/18 00:31:49, rsesek wrote: > > Bummer. Try ...
9 years, 4 months ago (2011-08-18 04:53:42 UTC) #22
bashi
On 2011/08/18 04:53:42, rsesek wrote: > I thought I had sample code that had this ...
9 years, 4 months ago (2011-08-19 05:59:59 UTC) #23
Robert Sesek
LGTM. Nice work! http://codereview.chromium.org/7565007/diff/26001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm File chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm (right): http://codereview.chromium.org/7565007/diff/26001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm#newcode168 chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm:168: id fakeApp = [OCMockObject partialMockForObject:NSApp]; I ...
9 years, 4 months ago (2011-08-19 15:36:25 UTC) #24
bashi
Thank you for review! http://codereview.chromium.org/7565007/diff/26001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm File chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm (right): http://codereview.chromium.org/7565007/diff/26001/chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm#newcode168 chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm:168: id fakeApp = [OCMockObject partialMockForObject:NSApp]; ...
9 years, 4 months ago (2011-08-22 06:43:48 UTC) #25
commit-bot: I haz the power
9 years, 4 months ago (2011-08-23 07:09:36 UTC) #26
Change committed as 97828

Powered by Google App Engine
This is Rietveld 408576698