OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |