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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 11821007: Merge 139017. Requested by yusufo@google.com (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698