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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2274253002: Added counters for pointer boundary events fired. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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) 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 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 { 1492 {
1493 // TODO(crbug.com/591387): This functionality should be per page not per fra me. 1493 // TODO(crbug.com/591387): This functionality should be per page not per fra me.
1494 m_pointerEventManager.setPointerCapture(pointerId, target); 1494 m_pointerEventManager.setPointerCapture(pointerId, target);
1495 } 1495 }
1496 1496
1497 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target) 1497 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target)
1498 { 1498 {
1499 m_pointerEventManager.releasePointerCapture(pointerId, target); 1499 m_pointerEventManager.releasePointerCapture(pointerId, target);
1500 } 1500 }
1501 1501
1502 bool EventHandler::hasPointerCapture(int pointerId, EventTarget* target) 1502 bool EventHandler::hasPointerCapture(int pointerId, const EventTarget* target) c onst
1503 { 1503 {
1504 return m_pointerEventManager.hasPointerCapture(pointerId, target); 1504 return m_pointerEventManager.hasPointerCapture(pointerId, target);
1505 } 1505 }
1506 1506
1507 bool EventHandler::hasProcessedPointerCapture(int pointerId, const EventTarget* target) const
1508 {
1509 return m_pointerEventManager.hasProcessedPointerCapture(pointerId, target);
1510 }
1511
1507 void EventHandler::elementRemoved(EventTarget* target) 1512 void EventHandler::elementRemoved(EventTarget* target)
1508 { 1513 {
1509 m_pointerEventManager.elementRemoved(target); 1514 m_pointerEventManager.elementRemoved(target);
1510 } 1515 }
1511 1516
1512 // TODO(mustaq): Make PE drive ME dispatch & bookkeeping in EventHandler. 1517 // TODO(mustaq): Make PE drive ME dispatch & bookkeeping in EventHandler.
1513 WebInputEventResult EventHandler::updatePointerTargetAndDispatchEvents(const Ato micString& mouseEventType, Node* targetNode, int clickCount, const PlatformMouse Event& mouseEvent) 1518 WebInputEventResult EventHandler::updatePointerTargetAndDispatchEvents(const Ato micString& mouseEventType, Node* targetNode, int clickCount, const PlatformMouse Event& mouseEvent)
1514 { 1519 {
1515 ASSERT(mouseEventType == EventTypeNames::mousedown 1520 ASSERT(mouseEventType == EventTypeNames::mousedown
1516 || mouseEventType == EventTypeNames::mousemove 1521 || mouseEventType == EventTypeNames::mousemove
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 2605
2601 FrameHost* EventHandler::frameHost() const 2606 FrameHost* EventHandler::frameHost() const
2602 { 2607 {
2603 if (!m_frame->page()) 2608 if (!m_frame->page())
2604 return nullptr; 2609 return nullptr;
2605 2610
2606 return &m_frame->page()->frameHost(); 2611 return &m_frame->page()->frameHost();
2607 } 2612 }
2608 2613
2609 } // namespace blink 2614 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.h ('k') | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698