| 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 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2223       case WebInputEvent::kMouseDown: |  2223       case WebInputEvent::kMouseDown: | 
|  2224         event_type = EventTypeNames::mousedown; |  2224         event_type = EventTypeNames::mousedown; | 
|  2225         gesture_indicator = WTF::WrapUnique( |  2225         gesture_indicator = WTF::WrapUnique( | 
|  2226             new UserGestureIndicator(DocumentUserGestureToken::Create( |  2226             new UserGestureIndicator(DocumentUserGestureToken::Create( | 
|  2227                 &node->GetDocument(), UserGestureToken::kNewGesture))); |  2227                 &node->GetDocument(), UserGestureToken::kNewGesture))); | 
|  2228         mouse_capture_gesture_token_ = gesture_indicator->CurrentToken(); |  2228         mouse_capture_gesture_token_ = gesture_indicator->CurrentToken(); | 
|  2229         break; |  2229         break; | 
|  2230       case WebInputEvent::kMouseUp: |  2230       case WebInputEvent::kMouseUp: | 
|  2231         event_type = EventTypeNames::mouseup; |  2231         event_type = EventTypeNames::mouseup; | 
|  2232         gesture_indicator = WTF::WrapUnique( |  2232         gesture_indicator = WTF::WrapUnique( | 
|  2233             new UserGestureIndicator(mouse_capture_gesture_token_.Release())); |  2233             new UserGestureIndicator(std::move(mouse_capture_gesture_token_))); | 
|  2234         break; |  2234         break; | 
|  2235       default: |  2235       default: | 
|  2236         NOTREACHED(); |  2236         NOTREACHED(); | 
|  2237     } |  2237     } | 
|  2238  |  2238  | 
|  2239     WebMouseEvent transformed_event = |  2239     WebMouseEvent transformed_event = | 
|  2240         TransformWebMouseEvent(MainFrameImpl()->GetFrameView(), |  2240         TransformWebMouseEvent(MainFrameImpl()->GetFrameView(), | 
|  2241                                static_cast<const WebMouseEvent&>(input_event)); |  2241                                static_cast<const WebMouseEvent&>(input_event)); | 
|  2242     node->DispatchMouseEvent(transformed_event, event_type, |  2242     node->DispatchMouseEvent(transformed_event, event_type, | 
|  2243                              transformed_event.click_count); |  2243                              transformed_event.click_count); | 
| (...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4151   if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |  4151   if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 
|  4152     return nullptr; |  4152     return nullptr; | 
|  4153   return focused_frame; |  4153   return focused_frame; | 
|  4154 } |  4154 } | 
|  4155  |  4155  | 
|  4156 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |  4156 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 
|  4157   return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |  4157   return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 
|  4158 } |  4158 } | 
|  4159  |  4159  | 
|  4160 }  // namespace blink |  4160 }  // namespace blink | 
| OLD | NEW |