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

Side by Side Diff: trunk/Source/core/page/EventHandler.cpp

Issue 391483002: Revert 177812 "Migrate touch events to EventHandlerRegistry" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/editing/TextIterator.h" 44 #include "core/editing/TextIterator.h"
45 #include "core/editing/htmlediting.h" 45 #include "core/editing/htmlediting.h"
46 #include "core/events/DOMWindowEventQueue.h" 46 #include "core/events/DOMWindowEventQueue.h"
47 #include "core/events/EventPath.h" 47 #include "core/events/EventPath.h"
48 #include "core/events/KeyboardEvent.h" 48 #include "core/events/KeyboardEvent.h"
49 #include "core/events/MouseEvent.h" 49 #include "core/events/MouseEvent.h"
50 #include "core/events/TextEvent.h" 50 #include "core/events/TextEvent.h"
51 #include "core/events/TouchEvent.h" 51 #include "core/events/TouchEvent.h"
52 #include "core/events/WheelEvent.h" 52 #include "core/events/WheelEvent.h"
53 #include "core/fetch/ImageResource.h" 53 #include "core/fetch/ImageResource.h"
54 #include "core/frame/EventHandlerRegistry.h"
55 #include "core/frame/FrameView.h" 54 #include "core/frame/FrameView.h"
56 #include "core/frame/LocalFrame.h" 55 #include "core/frame/LocalFrame.h"
57 #include "core/frame/Settings.h" 56 #include "core/frame/Settings.h"
58 #include "core/html/HTMLDialogElement.h" 57 #include "core/html/HTMLDialogElement.h"
59 #include "core/html/HTMLFrameElementBase.h" 58 #include "core/html/HTMLFrameElementBase.h"
60 #include "core/html/HTMLFrameSetElement.h" 59 #include "core/html/HTMLFrameSetElement.h"
61 #include "core/html/HTMLInputElement.h" 60 #include "core/html/HTMLInputElement.h"
62 #include "core/inspector/InspectorController.h" 61 #include "core/inspector/InspectorController.h"
63 #include "core/loader/FrameLoader.h" 62 #include "core/loader/FrameLoader.h"
64 #include "core/loader/FrameLoaderClient.h" 63 #include "core/loader/FrameLoaderClient.h"
(...skipping 3473 matching lines...) Expand 10 before | Expand all | Expand 10 after
3538 if (effectiveTouchAction != TouchActionAuto) 3537 if (effectiveTouchAction != TouchActionAuto)
3539 m_frame->page()->chrome().client().setTouchAction(effectiveTouch Action); 3538 m_frame->page()->chrome().client().setTouchAction(effectiveTouch Action);
3540 } 3539 }
3541 } 3540 }
3542 3541
3543 m_touchPressed = !allTouchReleased; 3542 m_touchPressed = !allTouchReleased;
3544 3543
3545 // If there's no document receiving touch events, or no handlers on the 3544 // If there's no document receiving touch events, or no handlers on the
3546 // document set to receive the events, then we can skip all the rest of 3545 // document set to receive the events, then we can skip all the rest of
3547 // this work. 3546 // this work.
3548 if (!m_touchSequenceDocument || !m_touchSequenceDocument->frameHost() || !m_ touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(Even tHandlerRegistry::TouchEvent) || !m_touchSequenceDocument->frame()) { 3547 if (!m_touchSequenceDocument || !m_touchSequenceDocument->hasTouchEventHandl ers() || !m_touchSequenceDocument->frame()) {
3549 if (allTouchReleased) { 3548 if (allTouchReleased) {
3550 m_touchSequenceDocument.clear(); 3549 m_touchSequenceDocument.clear();
3551 m_touchSequenceUserGestureToken.clear(); 3550 m_touchSequenceUserGestureToken.clear();
3552 } 3551 }
3553 return false; 3552 return false;
3554 } 3553 }
3555 3554
3556 // Build up the lists to use for the 'touches', 'targetTouches' and 3555 // Build up the lists to use for the 'touches', 'targetTouches' and
3557 // 'changedTouches' attributes in the JS event. See 3556 // 'changedTouches' attributes in the JS event. See
3558 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these 3557 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3808 unsigned EventHandler::accessKeyModifiers() 3807 unsigned EventHandler::accessKeyModifiers()
3809 { 3808 {
3810 #if OS(MACOSX) 3809 #if OS(MACOSX)
3811 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3810 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3812 #else 3811 #else
3813 return PlatformEvent::AltKey; 3812 return PlatformEvent::AltKey;
3814 #endif 3813 #endif
3815 } 3814 }
3816 3815
3817 } // namespace WebCore 3816 } // namespace WebCore
OLDNEW
« no previous file with comments | « trunk/Source/core/html/HTMLInputElement.cpp ('k') | trunk/Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698