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

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

Issue 23085004: DevTools: handle gesture tap event while in inspecting element mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 void InspectorController::hideHighlight() 315 void InspectorController::hideHighlight()
316 { 316 {
317 m_overlay->hideHighlight(); 317 m_overlay->hideHighlight();
318 } 318 }
319 319
320 Node* InspectorController::highlightedNode() const 320 Node* InspectorController::highlightedNode() const
321 { 321 {
322 return m_overlay->highlightedNode(); 322 return m_overlay->highlightedNode();
323 } 323 }
324 324
325 bool InspectorController::handleGestureEvent(Frame* frame, const PlatformGesture Event& event)
326 {
327 // Overlay should not consume events.
328 m_overlay->handleGestureEvent(event);
329 if (InspectorDOMAgent* domAgent = m_instrumentingAgents->inspectorDOMAgent() )
330 return domAgent->handleGestureEvent(frame, event);
331 return false;
332 }
333
325 bool InspectorController::handleMouseEvent(Frame* frame, const PlatformMouseEven t& event) 334 bool InspectorController::handleMouseEvent(Frame* frame, const PlatformMouseEven t& event)
326 { 335 {
327 // Overlay should not consume events. 336 // Overlay should not consume events.
328 m_overlay->handleMouseEvent(event); 337 m_overlay->handleMouseEvent(event);
329 338
330 if (event.type() == PlatformEvent::MouseMoved) { 339 if (event.type() == PlatformEvent::MouseMoved) {
331 if (InspectorDOMAgent* domAgent = m_instrumentingAgents->inspectorDOMAge nt()) 340 if (InspectorDOMAgent* domAgent = m_instrumentingAgents->inspectorDOMAge nt())
332 domAgent->handleMouseMove(frame, event); 341 domAgent->handleMouseMove(frame, event);
333 return false; 342 return false;
334 } 343 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 timelineAgent->willComposite(); 409 timelineAgent->willComposite();
401 } 410 }
402 411
403 void InspectorController::didComposite() 412 void InspectorController::didComposite()
404 { 413 {
405 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent()) 414 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent())
406 timelineAgent->didComposite(); 415 timelineAgent->didComposite();
407 } 416 }
408 417
409 } // namespace WebCore 418 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698