| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2153 // case, the form submission happens before the autofill client is told | 2153 // case, the form submission happens before the autofill client is told |
| 2154 // to unblock the password values, and so the password values are not | 2154 // to unblock the password values, and so the password values are not |
| 2155 // submitted. To avoid that, GestureTap is handled explicitly: | 2155 // submitted. To avoid that, GestureTap is handled explicitly: |
| 2156 if (inputEvent.type == WebInputEvent::GestureTap && autofillClient) { | 2156 if (inputEvent.type == WebInputEvent::GestureTap && autofillClient) { |
| 2157 m_userGestureObserved = true; | 2157 m_userGestureObserved = true; |
| 2158 autofillClient->firstUserGestureObserved(); | 2158 autofillClient->firstUserGestureObserved(); |
| 2159 } | 2159 } |
| 2160 | 2160 |
| 2161 page()->frameHost().visualViewport().startTrackingPinchStats(); | 2161 page()->frameHost().visualViewport().startTrackingPinchStats(); |
| 2162 | 2162 |
| 2163 TRACE_EVENT1("input", "WebViewImpl::handleInputEvent", "type", inputTypeToNa
me(inputEvent.type)); | 2163 TRACE_EVENT1("input,rail", "WebViewImpl::handleInputEvent", "type", inputTyp
eToName(inputEvent.type)); |
| 2164 // If we've started a drag and drop operation, ignore input events until | 2164 // If we've started a drag and drop operation, ignore input events until |
| 2165 // we're done. | 2165 // we're done. |
| 2166 if (m_doingDragAndDrop) | 2166 if (m_doingDragAndDrop) |
| 2167 return WebInputEventResult::HandledSuppressed; | 2167 return WebInputEventResult::HandledSuppressed; |
| 2168 | 2168 |
| 2169 if (m_devToolsEmulator->handleInputEvent(inputEvent)) | 2169 if (m_devToolsEmulator->handleInputEvent(inputEvent)) |
| 2170 return WebInputEventResult::HandledSuppressed; | 2170 return WebInputEventResult::HandledSuppressed; |
| 2171 | 2171 |
| 2172 if (InspectorOverlay* overlay = inspectorOverlay()) { | 2172 if (InspectorOverlay* overlay = inspectorOverlay()) { |
| 2173 if (overlay->handleInputEvent(inputEvent)) | 2173 if (overlay->handleInputEvent(inputEvent)) |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4627 return nullptr; | 4627 return nullptr; |
| 4628 return focusedFrame; | 4628 return focusedFrame; |
| 4629 } | 4629 } |
| 4630 | 4630 |
| 4631 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const | 4631 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const |
| 4632 { | 4632 { |
| 4633 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4633 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4634 } | 4634 } |
| 4635 | 4635 |
| 4636 } // namespace blink | 4636 } // namespace blink |
| OLD | NEW |