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

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

Issue 23600014: Rename OS(UNIX) to OS(POSIX) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months 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/inspector/InspectorOverlay.cpp ('k') | Source/core/page/Settings.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 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 HitTestResult result(windowPoint); 2085 HitTestResult result(windowPoint);
2086 renderView->hitTest(request, result); 2086 renderView->hitTest(request, result);
2087 return result.scrollbar(); 2087 return result.scrollbar();
2088 } 2088 }
2089 2089
2090 return false; 2090 return false;
2091 } 2091 }
2092 2092
2093 bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& re sult, const PlatformWheelEvent& event) const 2093 bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& re sult, const PlatformWheelEvent& event) const
2094 { 2094 {
2095 #if OS(UNIX) && !OS(MACOSX) 2095 #if OS(POSIX) && !OS(MACOSX)
2096 // GTK+ must scroll horizontally if the mouse pointer is on top of the 2096 // GTK+ must scroll horizontally if the mouse pointer is on top of the
2097 // horizontal scrollbar while scrolling with the wheel. 2097 // horizontal scrollbar while scrolling with the wheel.
2098 // This code comes from gtk/EventHandlerGtk.cpp. 2098 // This code comes from gtk/EventHandlerGtk.cpp.
2099 return !event.hasPreciseScrollingDeltas() && result.scrollbar() && result.sc rollbar()->orientation() == HorizontalScrollbar; 2099 return !event.hasPreciseScrollingDeltas() && result.scrollbar() && result.sc rollbar()->orientation() == HorizontalScrollbar;
2100 #else 2100 #else
2101 UNUSED_PARAM(result); 2101 UNUSED_PARAM(result);
2102 UNUSED_PARAM(event); 2102 UNUSED_PARAM(event);
2103 return false; 2103 return false;
2104 #endif 2104 #endif
2105 } 2105 }
(...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after
3847 unsigned EventHandler::accessKeyModifiers() 3847 unsigned EventHandler::accessKeyModifiers()
3848 { 3848 {
3849 #if OS(MACOSX) 3849 #if OS(MACOSX)
3850 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3850 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3851 #else 3851 #else
3852 return PlatformEvent::AltKey; 3852 return PlatformEvent::AltKey;
3853 #endif 3853 #endif
3854 } 3854 }
3855 3855
3856 } // namespace WebCore 3856 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/core/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698