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

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

Issue 640143004: Remove context menus. (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 | « sky/engine/core/page/ContextMenuProvider.h ('k') | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Handle the provided non-scroll gesture event. Should be called only on th e inner frame. 143 // Handle the provided non-scroll gesture event. Should be called only on th e inner frame.
144 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&); 144 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&);
145 145
146 // Handle the provided scroll gesture event, propagating down to child frame s as necessary. 146 // Handle the provided scroll gesture event, propagating down to child frame s as necessary.
147 bool handleGestureScrollEvent(const PlatformGestureEvent&); 147 bool handleGestureScrollEvent(const PlatformGestureEvent&);
148 bool handleGestureScrollEnd(const PlatformGestureEvent&); 148 bool handleGestureScrollEnd(const PlatformGestureEvent&);
149 bool isScrollbarHandlingGestures() const; 149 bool isScrollbarHandlingGestures() const;
150 150
151 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode); 151 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode);
152 bool bestContextMenuNodeForHitTestResult(const HitTestResult&, IntPoint& tar getPoint, Node*& targetNode);
153 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested? 152 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested?
154 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode); 153 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
155 154
156 bool sendContextMenuEvent(const PlatformMouseEvent&);
157 bool sendContextMenuEventForKey();
158 bool sendContextMenuEventForGesture(const GestureEventWithHitTestResults&);
159
160 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } 155 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; }
161 156
162 static unsigned accessKeyModifiers(); 157 static unsigned accessKeyModifiers();
163 bool handleAccessKey(const PlatformKeyboardEvent&); 158 bool handleAccessKey(const PlatformKeyboardEvent&);
164 bool keyEvent(const PlatformKeyboardEvent&); 159 bool keyEvent(const PlatformKeyboardEvent&);
165 void defaultKeyboardEventHandler(KeyboardEvent*); 160 void defaultKeyboardEventHandler(KeyboardEvent*);
166 161
167 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard); 162 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard);
168 void defaultTextInputEventHandler(TextEvent*); 163 void defaultTextInputEventHandler(TextEvent*);
169 164
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool m_touchPressed; 339 bool m_touchPressed;
345 340
346 RefPtrWillBeMember<Node> m_scrollGestureHandlingNode; 341 RefPtrWillBeMember<Node> m_scrollGestureHandlingNode;
347 bool m_lastGestureScrollOverWidget; 342 bool m_lastGestureScrollOverWidget;
348 RefPtrWillBeMember<Node> m_previousGestureScrolledNode; 343 RefPtrWillBeMember<Node> m_previousGestureScrolledNode;
349 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; 344 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
350 345
351 double m_maxMouseMovedDuration; 346 double m_maxMouseMovedDuration;
352 bool m_didStartDrag; 347 bool m_didStartDrag;
353 348
354 bool m_longTapShouldInvokeContextMenu;
355
356 Timer<EventHandler> m_activeIntervalTimer; 349 Timer<EventHandler> m_activeIntervalTimer;
357 double m_lastShowPressTimestamp; 350 double m_lastShowPressTimestamp;
358 RefPtrWillBeMember<Element> m_lastDeferredTapElement; 351 RefPtrWillBeMember<Element> m_lastDeferredTapElement;
359 }; 352 };
360 353
361 } // namespace blink 354 } // namespace blink
362 355
363 #endif // EventHandler_h 356 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « sky/engine/core/page/ContextMenuProvider.h ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698