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

Side by Side Diff: sky/engine/core/page/EventHandler.h

Issue 711233002: Remove some dead code around touch events and zooming. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | sky/engine/core/page/EventHandler.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, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Handle the provided non-scroll gesture event. Should be called only on th e inner frame. 140 // Handle the provided non-scroll gesture event. Should be called only on th e inner frame.
141 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&); 141 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&);
142 142
143 // Handle the provided scroll gesture event, propagating down to child frame s as necessary. 143 // Handle the provided scroll gesture event, propagating down to child frame s as necessary.
144 bool handleGestureScrollEvent(const PlatformGestureEvent&); 144 bool handleGestureScrollEvent(const PlatformGestureEvent&);
145 bool handleGestureScrollEnd(const PlatformGestureEvent&); 145 bool handleGestureScrollEnd(const PlatformGestureEvent&);
146 bool isScrollbarHandlingGestures() const; 146 bool isScrollbarHandlingGestures() const;
147 147
148 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode); 148 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode);
149 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested?
150 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
151 149
152 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } 150 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; }
153 151
154 static unsigned accessKeyModifiers(); 152 static unsigned accessKeyModifiers();
155 bool handleAccessKey(const PlatformKeyboardEvent&); 153 bool handleAccessKey(const PlatformKeyboardEvent&);
156 bool keyEvent(const PlatformKeyboardEvent&); 154 bool keyEvent(const PlatformKeyboardEvent&);
157 void defaultKeyboardEventHandler(KeyboardEvent*); 155 void defaultKeyboardEventHandler(KeyboardEvent*);
158 156
159 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard); 157 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard);
160 void defaultTextInputEventHandler(TextEvent*); 158 void defaultTextInputEventHandler(TextEvent*);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bool m_didStartDrag; 334 bool m_didStartDrag;
337 335
338 Timer<EventHandler> m_activeIntervalTimer; 336 Timer<EventHandler> m_activeIntervalTimer;
339 double m_lastShowPressTimestamp; 337 double m_lastShowPressTimestamp;
340 RefPtr<Element> m_lastDeferredTapElement; 338 RefPtr<Element> m_lastDeferredTapElement;
341 }; 339 };
342 340
343 } // namespace blink 341 } // namespace blink
344 342
345 #endif // EventHandler_h 343 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698