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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 case WebInputEvent::kMouseDown: | 405 case WebInputEvent::kMouseDown: |
406 event_type = EventTypeNames::mousedown; | 406 event_type = EventTypeNames::mousedown; |
407 gesture_indicator = WTF::WrapUnique( | 407 gesture_indicator = WTF::WrapUnique( |
408 new UserGestureIndicator(DocumentUserGestureToken::Create( | 408 new UserGestureIndicator(DocumentUserGestureToken::Create( |
409 &node->GetDocument(), UserGestureToken::kNewGesture))); | 409 &node->GetDocument(), UserGestureToken::kNewGesture))); |
410 mouse_capture_gesture_token_ = gesture_indicator->CurrentToken(); | 410 mouse_capture_gesture_token_ = gesture_indicator->CurrentToken(); |
411 break; | 411 break; |
412 case WebInputEvent::kMouseUp: | 412 case WebInputEvent::kMouseUp: |
413 event_type = EventTypeNames::mouseup; | 413 event_type = EventTypeNames::mouseup; |
414 gesture_indicator = WTF::WrapUnique( | 414 gesture_indicator = WTF::WrapUnique( |
415 new UserGestureIndicator(mouse_capture_gesture_token_.Release())); | 415 new UserGestureIndicator(std::move(mouse_capture_gesture_token_))); |
416 break; | 416 break; |
417 default: | 417 default: |
418 NOTREACHED(); | 418 NOTREACHED(); |
419 } | 419 } |
420 | 420 |
421 WebMouseEvent transformed_event = | 421 WebMouseEvent transformed_event = |
422 TransformWebMouseEvent(local_root_->GetFrameView(), | 422 TransformWebMouseEvent(local_root_->GetFrameView(), |
423 static_cast<const WebMouseEvent&>(input_event)); | 423 static_cast<const WebMouseEvent&>(input_event)); |
424 node->DispatchMouseEvent(transformed_event, event_type, | 424 node->DispatchMouseEvent(transformed_event, event_type, |
425 transformed_event.click_count); | 425 transformed_event.click_count); |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 : nullptr; | 1197 : nullptr; |
1198 } | 1198 } |
1199 | 1199 |
1200 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { | 1200 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { |
1201 if (!ime_accept_events_) | 1201 if (!ime_accept_events_) |
1202 return nullptr; | 1202 return nullptr; |
1203 return FocusedLocalFrameInWidget(); | 1203 return FocusedLocalFrameInWidget(); |
1204 } | 1204 } |
1205 | 1205 |
1206 } // namespace blink | 1206 } // namespace blink |
OLD | NEW |