OLD | NEW |
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 Loading... |
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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. | 1061 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. |
1066 page()->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); | 1062 page()->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); |
1067 | 1063 |
1068 if (m_layerTreeView) { | 1064 if (m_layerTreeView) { |
1069 bool visible = visibilityState == WebPageVisibilityStateVisible; | 1065 bool visible = visibilityState == WebPageVisibilityStateVisible; |
1070 m_layerTreeView->setVisible(visible); | 1066 m_layerTreeView->setVisible(visible); |
1071 } | 1067 } |
1072 } | 1068 } |
1073 | 1069 |
1074 } // namespace blink | 1070 } // namespace blink |
OLD | NEW |