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

Side by Side Diff: Source/core/inspector/InspectorOverlay.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/InspectorOverlay.h ('k') | Source/web/WebDevToolsAgentImpl.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) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 FrameView* view = overlayPage()->mainFrame()->view(); 248 FrameView* view = overlayPage()->mainFrame()->view();
249 ASSERT(!view->needsLayout()); 249 ASSERT(!view->needsLayout());
250 view->paint(&context, IntRect(0, 0, view->width(), view->height())); 250 view->paint(&context, IntRect(0, 0, view->width(), view->height()));
251 } 251 }
252 252
253 void InspectorOverlay::invalidate() 253 void InspectorOverlay::invalidate()
254 { 254 {
255 m_client->highlight(); 255 m_client->highlight();
256 } 256 }
257 257
258 bool InspectorOverlay::handleGestureEvent(const PlatformGestureEvent& event)
259 {
260 if (isEmpty())
261 return false;
262
263 return overlayPage()->mainFrame()->eventHandler()->handleGestureEvent(event) ;
264 }
265
258 bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event) 266 bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event)
259 { 267 {
260 if (isEmpty()) 268 if (isEmpty())
261 return false; 269 return false;
262 270
263 EventHandler* eventHandler = overlayPage()->mainFrame()->eventHandler(); 271 EventHandler* eventHandler = overlayPage()->mainFrame()->eventHandler();
264 bool result; 272 bool result;
265 switch (event.type()) { 273 switch (event.type()) {
266 case PlatformEvent::MouseMoved: 274 case PlatformEvent::MouseMoved:
267 result = eventHandler->mouseMoved(event); 275 result = eventHandler->mouseMoved(event);
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 669
662 void InspectorOverlay::freePage() 670 void InspectorOverlay::freePage()
663 { 671 {
664 m_overlayPage.clear(); 672 m_overlayPage.clear();
665 m_overlayChromeClient.clear(); 673 m_overlayChromeClient.clear();
666 m_timer.stop(); 674 m_timer.stop();
667 } 675 }
668 676
669 } // namespace WebCore 677 } // namespace WebCore
670 678
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.h ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698