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

Side by Side Diff: Source/core/inspector/InspectorDOMAgent.cpp

Issue 298133003: Expose fractional TouchEvent coordinates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make layout test output stable across platforms Created 6 years, 6 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
« no previous file with comments | « Source/core/dom/Touch.idl ('k') | Source/core/inspector/InspectorInputAgent.cpp » ('j') | 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
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 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& ev ent, bool ignorePointerEventsNone) 170 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& ev ent, bool ignorePointerEventsNone)
171 { 171 {
172 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone) ; 172 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone) ;
173 } 173 }
174 174
175 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformTouchEvent& ev ent, bool ignorePointerEventsNone) 175 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformTouchEvent& ev ent, bool ignorePointerEventsNone)
176 { 176 {
177 const Vector<PlatformTouchPoint>& points = event.touchPoints(); 177 const Vector<PlatformTouchPoint>& points = event.touchPoints();
178 if (!points.size()) 178 if (!points.size())
179 return 0; 179 return 0;
180 return hoveredNodeForPoint(frame, points[0].pos(), ignorePointerEventsNone); 180 return hoveredNodeForPoint(frame, roundedIntPoint(points[0].pos()), ignorePo interEventsNone);
181 } 181 }
182 182
183 class RevalidateStyleAttributeTask { 183 class RevalidateStyleAttributeTask {
184 WTF_MAKE_FAST_ALLOCATED; 184 WTF_MAKE_FAST_ALLOCATED;
185 public: 185 public:
186 RevalidateStyleAttributeTask(InspectorDOMAgent*); 186 RevalidateStyleAttributeTask(InspectorDOMAgent*);
187 void scheduleFor(Element*); 187 void scheduleFor(Element*);
188 void reset() { m_timer.stop(); } 188 void reset() { m_timer.stop(); }
189 void onTimer(Timer<RevalidateStyleAttributeTask>*); 189 void onTimer(Timer<RevalidateStyleAttributeTask>*);
190 190
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2092 if (!m_documentNodeToIdMap.contains(m_document)) { 2092 if (!m_documentNodeToIdMap.contains(m_document)) {
2093 RefPtr<TypeBuilder::DOM::Node> root; 2093 RefPtr<TypeBuilder::DOM::Node> root;
2094 getDocument(errorString, root); 2094 getDocument(errorString, root);
2095 return errorString->isEmpty(); 2095 return errorString->isEmpty();
2096 } 2096 }
2097 return true; 2097 return true;
2098 } 2098 }
2099 2099
2100 } // namespace WebCore 2100 } // namespace WebCore
2101 2101
OLDNEW
« no previous file with comments | « Source/core/dom/Touch.idl ('k') | Source/core/inspector/InspectorInputAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698