summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller.mm
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-03 00:51:44 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-03 00:51:44 +0000
commita88f9709ca82ecf4a2d6a95972d18b921b98c6af (patch)
tree65104094f3abc55e6b749df9761129923c17db15 /chrome/browser/cocoa/browser_window_controller.mm
parent1bac460adb2a617c58f537a1bb70731f8a05fd92 (diff)
downloadchromium_src-a88f9709ca82ecf4a2d6a95972d18b921b98c6af.zip
chromium_src-a88f9709ca82ecf4a2d6a95972d18b921b98c6af.tar.gz
chromium_src-a88f9709ca82ecf4a2d6a95972d18b921b98c6af.tar.bz2
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
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_controller.mm7
1 files changed, 4 insertions, 3 deletions
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.