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

Side by Side Diff: Source/core/page/EventHandler.cpp

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 renderView->hitTest(request, result); 2122 renderView->hitTest(request, result);
2123 return result.scrollbar(); 2123 return result.scrollbar();
2124 } 2124 }
2125 2125
2126 return false; 2126 return false;
2127 } 2127 }
2128 2128
2129 bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& re sult, const PlatformWheelEvent& event) const 2129 bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& re sult, const PlatformWheelEvent& event) const
2130 { 2130 {
2131 #if OS(ANDROID) || OS(MACOSX) || OS(WIN) 2131 #if OS(ANDROID) || OS(MACOSX) || OS(WIN)
2132 UNUSED_PARAM(result);
2133 UNUSED_PARAM(event);
2134 return false; 2132 return false;
2135 #else 2133 #else
2136 // GTK+ must scroll horizontally if the mouse pointer is on top of the 2134 // GTK+ must scroll horizontally if the mouse pointer is on top of the
2137 // horizontal scrollbar while scrolling with the wheel. 2135 // horizontal scrollbar while scrolling with the wheel.
2138 // This code comes from gtk/EventHandlerGtk.cpp. 2136 // This code comes from gtk/EventHandlerGtk.cpp.
2139 return !event.hasPreciseScrollingDeltas() && result.scrollbar() && result.sc rollbar()->orientation() == HorizontalScrollbar; 2137 return !event.hasPreciseScrollingDeltas() && result.scrollbar() && result.sc rollbar()->orientation() == HorizontalScrollbar;
2140 #endif 2138 #endif
2141 } 2139 }
2142 2140
2143 bool EventHandler::handleWheelEvent(const PlatformWheelEvent& e) 2141 bool EventHandler::handleWheelEvent(const PlatformWheelEvent& e)
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
4011 unsigned EventHandler::accessKeyModifiers() 4009 unsigned EventHandler::accessKeyModifiers()
4012 { 4010 {
4013 #if OS(MACOSX) 4011 #if OS(MACOSX)
4014 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4012 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4015 #else 4013 #else
4016 return PlatformEvent::AltKey; 4014 return PlatformEvent::AltKey;
4017 #endif 4015 #endif
4018 } 4016 }
4019 4017
4020 } // namespace WebCore 4018 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698