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

Side by Side Diff: content/common/input/web_input_event_traits.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « content/common/input/synthetic_gesture_packet.h ('k') | content/common/mojo/channel_init.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/input/web_input_event_traits.h" 5 #include "content/common/input/web_input_event_traits.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 size_t WebInputEventTraits::GetSize(WebInputEvent::Type type) { 433 size_t WebInputEventTraits::GetSize(WebInputEvent::Type type) {
434 size_t size = 0; 434 size_t size = 0;
435 Apply(WebInputEventSize(), type, type, &size); 435 Apply(WebInputEventSize(), type, type, &size);
436 return size; 436 return size;
437 } 437 }
438 438
439 ScopedWebInputEvent WebInputEventTraits::Clone(const WebInputEvent& event) { 439 ScopedWebInputEvent WebInputEventTraits::Clone(const WebInputEvent& event) {
440 ScopedWebInputEvent scoped_event; 440 ScopedWebInputEvent scoped_event;
441 Apply(WebInputEventClone(), event.type, event, &scoped_event); 441 Apply(WebInputEventClone(), event.type, event, &scoped_event);
442 return scoped_event.Pass(); 442 return scoped_event;
443 } 443 }
444 444
445 void WebInputEventTraits::Delete(WebInputEvent* event) { 445 void WebInputEventTraits::Delete(WebInputEvent* event) {
446 if (!event) 446 if (!event)
447 return; 447 return;
448 bool dummy_var = false; 448 bool dummy_var = false;
449 Apply(WebInputEventDelete(), event->type, event, &dummy_var); 449 Apply(WebInputEventDelete(), event->type, event, &dummy_var);
450 } 450 }
451 451
452 bool WebInputEventTraits::CanCoalesce(const WebInputEvent& event_to_coalesce, 452 bool WebInputEventTraits::CanCoalesce(const WebInputEvent& event_to_coalesce,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 494
495 uint32_t WebInputEventTraits::GetUniqueTouchEventId( 495 uint32_t WebInputEventTraits::GetUniqueTouchEventId(
496 const WebInputEvent& event) { 496 const WebInputEvent& event) {
497 if (WebInputEvent::isTouchEventType(event.type)) { 497 if (WebInputEvent::isTouchEventType(event.type)) {
498 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId; 498 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId;
499 } 499 }
500 return 0U; 500 return 0U;
501 } 501 }
502 502
503 } // namespace content 503 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/synthetic_gesture_packet.h ('k') | content/common/mojo/channel_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698