| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 FrameView* view = m_localRoot->frameView(); | 324 FrameView* view = m_localRoot->frameView(); |
| 325 | 325 |
| 326 WebRect damagedRect(0, 0, m_size.width, m_size.height); | 326 WebRect damagedRect(0, 0, m_size.width, m_size.height); |
| 327 view->invalidateRect(damagedRect); | 327 view->invalidateRect(damagedRect); |
| 328 } | 328 } |
| 329 | 329 |
| 330 const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr; | 330 const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr; |
| 331 | 331 |
| 332 WebInputEventResult WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& in
putEvent) | 332 WebInputEventResult WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& in
putEvent) |
| 333 { | 333 { |
| 334 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", inputT
ypeToName(inputEvent.type)); | 334 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", WebInp
utEvent::GetName(inputEvent.type)); |
| 335 | 335 |
| 336 // Don't handle events once we've started shutting down. | 336 // Don't handle events once we've started shutting down. |
| 337 if (!page()) | 337 if (!page()) |
| 338 return WebInputEventResult::NotHandled; | 338 return WebInputEventResult::NotHandled; |
| 339 | 339 |
| 340 // Report the event to be NOT processed by WebKit, so that the browser can h
andle it appropriately. | 340 // Report the event to be NOT processed by WebKit, so that the browser can h
andle it appropriately. |
| 341 if (m_ignoreInputEvents) | 341 if (m_ignoreInputEvents) |
| 342 return WebInputEventResult::NotHandled; | 342 return WebInputEventResult::NotHandled; |
| 343 | 343 |
| 344 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. | 344 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
| 1460 { | 1460 { |
| 1461 if (!m_imeAcceptEvents) | 1461 if (!m_imeAcceptEvents) |
| 1462 return nullptr; | 1462 return nullptr; |
| 1463 return focusedLocalFrameInWidget(); | 1463 return focusedLocalFrameInWidget(); |
| 1464 } | 1464 } |
| 1465 | 1465 |
| 1466 } // namespace blink | 1466 } // namespace blink |
| OLD | NEW |