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

Issue 330002: Mac: implement dispositions for back/forward buttons (not in drop-downs). (Closed)

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

Description

Mac: implement dispositions for back/forward buttons (not in drop-downs). That is, holding Cmd while pressing back/forward will open in a new background tab and holding Cmd+Shift will open in a new foreground tab. Theoretically, it can support holding Shift to open in a new window, but Browser::GoBack()/GoForward() doesn't support this disposition (due to a technical "limitation" of the implementation?). This does *not* implement dispositions in the drop-down menus. BUG=25319 TEST=Navigate to build up some history. Then press back/forward while holding down Cmd or Cmd+Shift. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30016

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix handling of dispositions other than NEW_FOREGROUND_TAB/NEW_BACKGROUND_TAB/CURRENT_TAB. #

Total comments: 2

Patch Set 3 : We never need to call Revert() on back/forwards, so the logic can be simplified. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
viettrungluu
11 years, 1 month ago (2009-10-23 22:46:25 UTC) #1
viettrungluu
Self-review ... (new version uploaded). http://codereview.chromium.org/330002/diff/1/2 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/330002/diff/1/2#newcode609 Line 609: if (disposition != ...
11 years, 1 month ago (2009-10-23 22:58:50 UTC) #2
Nico
http://codereview.chromium.org/330002/diff/1002/1003 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/330002/diff/1002/1003#newcode611 Line 611: // fall through to the default (current tab) ...
11 years, 1 month ago (2009-10-24 20:34:05 UTC) #3
viettrungluu
http://codereview.chromium.org/330002/diff/1002/1003 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/330002/diff/1002/1003#newcode611 Line 611: // fall through to the default (current tab) ...
11 years, 1 month ago (2009-10-24 20:56:29 UTC) #4
viettrungluu
Simplified (never call Revert()). Please re-review.
11 years, 1 month ago (2009-10-24 21:08:20 UTC) #5
Nico
11 years, 1 month ago (2009-10-24 21:15:04 UTC) #6
LG.

Powered by Google App Engine
This is Rietveld 408576698