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

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

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698