| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 AtomicString eventType; | 363 AtomicString eventType; |
| 364 switch (inputEvent.type) { | 364 switch (inputEvent.type) { |
| 365 case WebInputEvent::MouseMove: | 365 case WebInputEvent::MouseMove: |
| 366 eventType = EventTypeNames::mousemove; | 366 eventType = EventTypeNames::mousemove; |
| 367 break; | 367 break; |
| 368 case WebInputEvent::MouseLeave: | 368 case WebInputEvent::MouseLeave: |
| 369 eventType = EventTypeNames::mouseout; | 369 eventType = EventTypeNames::mouseout; |
| 370 break; | 370 break; |
| 371 case WebInputEvent::MouseDown: | 371 case WebInputEvent::MouseDown: |
| 372 eventType = EventTypeNames::mousedown; | 372 eventType = EventTypeNames::mousedown; |
| 373 gestureIndicator = wrapUnique( | 373 gestureIndicator = WTF::wrapUnique( |
| 374 new UserGestureIndicator(DocumentUserGestureToken::create( | 374 new UserGestureIndicator(DocumentUserGestureToken::create( |
| 375 &node->document(), UserGestureToken::NewGesture))); | 375 &node->document(), UserGestureToken::NewGesture))); |
| 376 m_mouseCaptureGestureToken = gestureIndicator->currentToken(); | 376 m_mouseCaptureGestureToken = gestureIndicator->currentToken(); |
| 377 break; | 377 break; |
| 378 case WebInputEvent::MouseUp: | 378 case WebInputEvent::MouseUp: |
| 379 eventType = EventTypeNames::mouseup; | 379 eventType = EventTypeNames::mouseup; |
| 380 gestureIndicator = wrapUnique( | 380 gestureIndicator = WTF::wrapUnique( |
| 381 new UserGestureIndicator(m_mouseCaptureGestureToken.release())); | 381 new UserGestureIndicator(m_mouseCaptureGestureToken.release())); |
| 382 break; | 382 break; |
| 383 default: | 383 default: |
| 384 NOTREACHED(); | 384 NOTREACHED(); |
| 385 } | 385 } |
| 386 | 386 |
| 387 node->dispatchMouseEvent( | 387 node->dispatchMouseEvent( |
| 388 PlatformMouseEventBuilder( | 388 PlatformMouseEventBuilder( |
| 389 m_localRoot->frameView(), | 389 m_localRoot->frameView(), |
| 390 static_cast<const WebMouseEvent&>(inputEvent)), | 390 static_cast<const WebMouseEvent&>(inputEvent)), |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 return nullptr; | 1150 return nullptr; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { | 1153 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { |
| 1154 if (!m_imeAcceptEvents) | 1154 if (!m_imeAcceptEvents) |
| 1155 return nullptr; | 1155 return nullptr; |
| 1156 return focusedLocalFrameInWidget(); | 1156 return focusedLocalFrameInWidget(); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 } // namespace blink | 1159 } // namespace blink |
| OLD | NEW |