From a88f9709ca82ecf4a2d6a95972d18b921b98c6af Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Sun, 3 Jan 2010 00:51:44 +0000 Subject: Mac: Cmd-three finger swipe should open prev/next page in new tab. BUG=29804 TEST=surf around, hold cmd, three-finger-swipe to the left. previous page should open in new tab. switch to new tab, hold cmd, three-finger-swipe to the right. original page should open in yet another tab. Review URL: http://codereview.chromium.org/525002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35440 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/cocoa/browser_window_controller.mm') diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index ab12bfb..d6bd3da 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1447,14 +1447,15 @@ willPositionSheet:(NSWindow*)sheet else if ([event deltaX] < -0.5) command = IDC_FORWARD; else if ([event deltaY] > 0.5) - ; // TODO(pinkerton): figure out page-up + ; // TODO(pinkerton): figure out page-up, http://crbug.com/16305 else if ([event deltaY] < -0.5) - ; // TODO(pinkerton): figure out page-down + ; // TODO(pinkerton): figure out page-down, http://crbug.com/16305 // Ensure the command is valid first (ExecuteCommand() won't do that) and // then make it so. if (browser_->command_updater()->IsCommandEnabled(command)) - browser_->ExecuteCommand(command); + browser_->ExecuteCommandWithDisposition(command, + event_utils::WindowOpenDispositionFromNSEvent(event)); } // Delegate method called when window is resized. -- cgit v1.1