Index: 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 fa33dfb0b7687c198b87e09c018de122a4cd8d3d..4b57df7968442c64da86628080ee3c13b23f9243 100644 |
--- a/chrome/browser/cocoa/browser_window_controller.mm |
+++ b/chrome/browser/cocoa/browser_window_controller.mm |
@@ -1473,14 +1473,15 @@ |
- (void)swipeWithEvent:(NSEvent*)event { |
// Map forwards and backwards to history; left is positive, right is negative. |
unsigned int command = 0; |
- if ([event deltaX] > 0.5) |
+ if ([event deltaX] > 0.5) { |
command = IDC_BACK; |
- else if ([event deltaX] < -0.5) |
+ } else if ([event deltaX] < -0.5) { |
command = IDC_FORWARD; |
- else if ([event deltaY] > 0.5) |
- ; // TODO(pinkerton): figure out page-up, http://crbug.com/16305 |
- else if ([event deltaY] < -0.5) |
- ; // TODO(pinkerton): figure out page-down, http://crbug.com/16305 |
+ } else if ([event deltaY] > 0.5) { |
+ // TODO(pinkerton): figure out page-up, http://crbug.com/16305 |
Mark Mentovai
2010/06/11 18:47:35
Wow.
|
+ } else if ([event deltaY] < -0.5) { |
+ // 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. |