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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 1055683003: (NOT FOR REVIEW) Distinguish between touch and touchmove handler presence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix loading Created 5 years, 3 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
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 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 startPageScaleAnimation(scroll, false, scale, multipleTargetsZoomAnimationDu rationInSeconds); 1433 startPageScaleAnimation(scroll, false, scale, multipleTargetsZoomAnimationDu rationInSeconds);
1434 return true; 1434 return true;
1435 } 1435 }
1436 1436
1437 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers) 1437 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers)
1438 { 1438 {
1439 if (m_client) 1439 if (m_client)
1440 m_client->hasTouchEventHandlers(hasTouchHandlers); 1440 m_client->hasTouchEventHandlers(hasTouchHandlers);
1441 } 1441 }
1442 1442
1443 void WebViewImpl::hasTouchMoveEventHandlers(bool hasTouchMoveHandlers)
1444 {
1445 if (m_client)
1446 m_client->hasTouchMoveEventHandlers(hasTouchMoveHandlers);
1447 }
1448
1443 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) 1449 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point)
1444 { 1450 {
1445 // FIXME: Implement this. Note that the point must be divided by pageScaleFa ctor. 1451 // FIXME: Implement this. Note that the point must be divided by pageScaleFa ctor.
1446 return true; 1452 return true;
1447 } 1453 }
1448 1454
1449 #if !OS(MACOSX) 1455 #if !OS(MACOSX)
1450 // Mac has no way to open a context menu based on a keyboard event. 1456 // Mac has no way to open a context menu based on a keyboard event.
1451 bool WebViewImpl::sendContextMenuEvent(const WebKeyboardEvent& event) 1457 bool WebViewImpl::sendContextMenuEvent(const WebKeyboardEvent& event)
1452 { 1458 {
(...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
4412 if (m_pageColorOverlay) 4418 if (m_pageColorOverlay)
4413 m_pageColorOverlay->update(); 4419 m_pageColorOverlay->update();
4414 if (InspectorOverlayImpl* overlay = inspectorOverlay()) { 4420 if (InspectorOverlayImpl* overlay = inspectorOverlay()) {
4415 PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); 4421 PageOverlay* inspectorPageOverlay = overlay->pageOverlay();
4416 if (inspectorPageOverlay) 4422 if (inspectorPageOverlay)
4417 inspectorPageOverlay->update(); 4423 inspectorPageOverlay->update();
4418 } 4424 }
4419 } 4425 }
4420 4426
4421 } // namespace blink 4427 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698