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

Side by Side Diff: Source/web/WebFrameWidgetImpl.cpp

Issue 1322053002: Devtools: Move inspectMode logic from InspectorDomAgent to InspectorOverlayImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 default: 372 default:
373 return String("unknown"); 373 return String("unknown");
374 } 374 }
375 } 375 }
376 376
377 bool WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& inputEvent) 377 bool WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& inputEvent)
378 { 378 {
379 379
380 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", inputT ypeToName(inputEvent.type).ascii()); 380 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", inputT ypeToName(inputEvent.type).ascii());
381 381
382 WebDevToolsAgentImpl* devTools = m_localRoot ? m_localRoot->devToolsAgentImp l() : nullptr;
383 if (devTools && devTools->handleInputEvent(inputEvent))
384 return true;
385
386 // Report the event to be NOT processed by WebKit, so that the browser can h andle it appropriately. 382 // Report the event to be NOT processed by WebKit, so that the browser can h andle it appropriately.
387 if (m_ignoreInputEvents) 383 if (m_ignoreInputEvents)
388 return false; 384 return false;
389 385
390 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. 386 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available.
391 387
392 TemporaryChange<const WebInputEvent*> currentEventChange(m_currentInputEvent , &inputEvent); 388 TemporaryChange<const WebInputEvent*> currentEventChange(m_currentInputEvent , &inputEvent);
393 389
394 if (m_mouseCaptureNode && WebInputEvent::isMouseEventType(inputEvent.type)) { 390 if (m_mouseCaptureNode && WebInputEvent::isMouseEventType(inputEvent.type)) {
395 TRACE_EVENT1("input", "captured mouse event", "type", inputEvent.type); 391 TRACE_EVENT1("input", "captured mouse event", "type", inputEvent.type);
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility. 1036 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility.
1041 page()->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState); 1037 page()->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState);
1042 1038
1043 if (m_layerTreeView) { 1039 if (m_layerTreeView) {
1044 bool visible = visibilityState == WebPageVisibilityStateVisible; 1040 bool visible = visibilityState == WebPageVisibilityStateVisible;
1045 m_layerTreeView->setVisible(visible); 1041 m_layerTreeView->setVisible(visible);
1046 } 1042 }
1047 } 1043 }
1048 1044
1049 } // namespace blink 1045 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698