Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698