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

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

Issue 2245133006: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL for perf tryjob on mac Created 4 years, 4 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 2527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2538 if (!rect.contains(roundedIntPoint(point))) 2538 if (!rect.contains(roundedIntPoint(point)))
2539 return result; 2539 return result;
2540 } 2540 }
2541 frame->contentLayoutItem().hitTest(result); 2541 frame->contentLayoutItem().hitTest(result);
2542 return result; 2542 return result;
2543 } 2543 }
2544 2544
2545 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve nt) 2545 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve nt)
2546 { 2546 {
2547 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent"); 2547 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent");
2548 VLOG(0) << "EventHandler::handleTouchEvent: " << event.type();
2548 return m_pointerEventManager.handleTouchEvents(event); 2549 return m_pointerEventManager.handleTouchEvents(event);
2549 } 2550 }
2550 2551
2551 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event) 2552 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event)
2552 { 2553 {
2553 m_mousePositionIsUnknown = false; 2554 m_mousePositionIsUnknown = false;
2554 m_lastKnownMousePosition = event.position(); 2555 m_lastKnownMousePosition = event.position();
2555 m_lastKnownMouseGlobalPosition = event.globalPosition(); 2556 m_lastKnownMouseGlobalPosition = event.globalPosition();
2556 } 2557 }
2557 2558
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 2598
2598 FrameHost* EventHandler::frameHost() const 2599 FrameHost* EventHandler::frameHost() const
2599 { 2600 {
2600 if (!m_frame->page()) 2601 if (!m_frame->page())
2601 return nullptr; 2602 return nullptr;
2602 2603
2603 return &m_frame->page()->frameHost(); 2604 return &m_frame->page()->frameHost();
2604 } 2605 }
2605 2606
2606 } // namespace blink 2607 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.cpp ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698