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

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

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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/page/EventHandler.h ('k') | Source/core/plugins/DOMMimeTypeArray.h » ('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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 897
898 return result; 898 return result;
899 } 899 }
900 900
901 void EventHandler::stopAutoscroll() 901 void EventHandler::stopAutoscroll()
902 { 902 {
903 if (AutoscrollController* controller = autoscrollController()) 903 if (AutoscrollController* controller = autoscrollController())
904 controller->stopAutoscroll(); 904 controller->stopAutoscroll();
905 } 905 }
906 906
907 Node* EventHandler::mousePressNode() const
908 {
909 return m_mousePressNode.get();
910 }
911
912 bool EventHandler::scroll(ScrollDirection direction, ScrollGranularity granulari ty, Node* startNode, Node** stopNode, float delta, IntPoint absolutePoint) 907 bool EventHandler::scroll(ScrollDirection direction, ScrollGranularity granulari ty, Node* startNode, Node** stopNode, float delta, IntPoint absolutePoint)
913 { 908 {
914 if (!delta) 909 if (!delta)
915 return false; 910 return false;
916 911
917 Node* node = startNode; 912 Node* node = startNode;
918 913
919 if (!node) 914 if (!node)
920 node = m_frame->document()->focusedElement(); 915 node = m_frame->document()->focusedElement();
921 916
(...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after
3902 unsigned EventHandler::accessKeyModifiers() 3897 unsigned EventHandler::accessKeyModifiers()
3903 { 3898 {
3904 #if OS(MACOSX) 3899 #if OS(MACOSX)
3905 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3900 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3906 #else 3901 #else
3907 return PlatformEvent::AltKey; 3902 return PlatformEvent::AltKey;
3908 #endif 3903 #endif
3909 } 3904 }
3910 3905
3911 } // namespace blink 3906 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | Source/core/plugins/DOMMimeTypeArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698