| OLD | NEW |
| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 321 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
| 322 | 322 |
| 323 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, LayoutObjec
t*); | 323 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, LayoutObjec
t*); |
| 324 | 324 |
| 325 AutoscrollController* autoscrollController() const; | 325 AutoscrollController* autoscrollController() const; |
| 326 bool panScrollInProgress() const; | 326 bool panScrollInProgress() const; |
| 327 void setLastKnownMousePosition(const PlatformMouseEvent&); | 327 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 328 | 328 |
| 329 bool shouldTopControlsConsumeScroll(FloatSize) const; | 329 bool shouldTopControlsConsumeScroll(FloatSize) const; |
| 330 | 330 |
| 331 // If the given element is a shadow host and its root has delegatesFocus=fal
se flag, |
| 332 // slide focus to its inner element. Returns true if the resulting focus is
different from |
| 333 // the given element. |
| 334 bool slideFocusOnShadowHostIfNecessary(const Element&); |
| 335 |
| 331 // NOTE: If adding a new field to this class please ensure that it is | 336 // NOTE: If adding a new field to this class please ensure that it is |
| 332 // cleared in |EventHandler::clear()|. | 337 // cleared in |EventHandler::clear()|. |
| 333 | 338 |
| 334 LocalFrame* const m_frame; | 339 LocalFrame* const m_frame; |
| 335 | 340 |
| 336 bool m_mousePressed; | 341 bool m_mousePressed; |
| 337 bool m_capturesDragging; | 342 bool m_capturesDragging; |
| 338 RefPtrWillBeMember<Node> m_mousePressNode; | 343 RefPtrWillBeMember<Node> m_mousePressNode; |
| 339 | 344 |
| 340 bool m_mouseDownMayStartSelect; | 345 bool m_mouseDownMayStartSelect; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // scroll sequence in this frame, or any child frames. Only used | 431 // scroll sequence in this frame, or any child frames. Only used |
| 427 // with ScrollCustomization. If some delta has been consumed, a | 432 // with ScrollCustomization. If some delta has been consumed, a |
| 428 // scroll which shouldn't propagate can't cause any element to | 433 // scroll which shouldn't propagate can't cause any element to |
| 429 // scroll other than the |m_previousGestureScrolledNode|. | 434 // scroll other than the |m_previousGestureScrolledNode|. |
| 430 bool m_deltaConsumedForScrollSequence; | 435 bool m_deltaConsumedForScrollSequence; |
| 431 }; | 436 }; |
| 432 | 437 |
| 433 } // namespace blink | 438 } // namespace blink |
| 434 | 439 |
| 435 #endif // EventHandler_h | 440 #endif // EventHandler_h |
| OLD | NEW |