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

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: Remove unused variables from signatures 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
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 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
4017 unsigned EventHandler::accessKeyModifiers() 4015 unsigned EventHandler::accessKeyModifiers()
4018 { 4016 {
4019 #if OS(MACOSX) 4017 #if OS(MACOSX)
4020 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4018 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4021 #else 4019 #else
4022 return PlatformEvent::AltKey; 4020 return PlatformEvent::AltKey;
4023 #endif 4021 #endif
4024 } 4022 }
4025 4023
4026 } // namespace WebCore 4024 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698