| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 break; | 769 break; |
| 770 } | 770 } |
| 771 case WebInputEvent::GestureTapDown: { | 771 case WebInputEvent::GestureTapDown: { |
| 772 m_client->cancelScheduledContentIntents(); | 772 m_client->cancelScheduledContentIntents(); |
| 773 PlatformGestureEventBuilder platformEvent(mainFrameImpl()->frameView(),
event); | 773 PlatformGestureEventBuilder platformEvent(mainFrameImpl()->frameView(),
event); |
| 774 eventSwallowed = mainFrameImpl()->frame()->eventHandler()->handleGesture
Event(platformEvent); | 774 eventSwallowed = mainFrameImpl()->frame()->eventHandler()->handleGesture
Event(platformEvent); |
| 775 break; | 775 break; |
| 776 } | 776 } |
| 777 case WebInputEvent::GestureDoubleTap: | 777 case WebInputEvent::GestureDoubleTap: |
| 778 if (m_webSettings->doubleTapToZoomEnabled()) { | 778 if (m_webSettings->doubleTapToZoomEnabled() && m_minimumPageScaleFactor
!= m_maximumPageScaleFactor) { |
| 779 m_client->cancelScheduledContentIntents(); | 779 m_client->cancelScheduledContentIntents(); |
| 780 animateZoomAroundPoint(WebPoint(event.x, event.y), DoubleTap); | 780 animateZoomAroundPoint(WebPoint(event.x, event.y), DoubleTap); |
| 781 eventSwallowed = true; | 781 eventSwallowed = true; |
| 782 break; | 782 break; |
| 783 } | 783 } |
| 784 case WebInputEvent::GestureScrollBegin: | 784 case WebInputEvent::GestureScrollBegin: |
| 785 case WebInputEvent::GesturePinchBegin: | 785 case WebInputEvent::GesturePinchBegin: |
| 786 m_client->cancelScheduledContentIntents(); | 786 m_client->cancelScheduledContentIntents(); |
| 787 case WebInputEvent::GestureScrollEnd: | 787 case WebInputEvent::GestureScrollEnd: |
| 788 case WebInputEvent::GestureScrollUpdate: | 788 case WebInputEvent::GestureScrollUpdate: |
| (...skipping 3501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4290 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); | 4290 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); |
| 4291 | 4291 |
| 4292 if (page()) | 4292 if (page()) |
| 4293 page()->pointerLockController()->dispatchLockedMouseEvent( | 4293 page()->pointerLockController()->dispatchLockedMouseEvent( |
| 4294 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), | 4294 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), |
| 4295 eventType); | 4295 eventType); |
| 4296 } | 4296 } |
| 4297 #endif | 4297 #endif |
| 4298 | 4298 |
| 4299 } // namespace WebKit | 4299 } // namespace WebKit |
| OLD | NEW |