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

Side by Side Diff: third_party/WebKit/Source/core/dom/Touch.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 , m_screenPos(FloatPoint(initializer.screenX(), initializer.screenY())) 76 , m_screenPos(FloatPoint(initializer.screenX(), initializer.screenY()))
77 , m_pagePos(FloatPoint(initializer.pageX(), initializer.pageY())) 77 , m_pagePos(FloatPoint(initializer.pageX(), initializer.pageY()))
78 , m_radius(FloatSize(initializer.radiusX(), initializer.radiusY())) 78 , m_radius(FloatSize(initializer.radiusX(), initializer.radiusY()))
79 , m_rotationAngle(initializer.rotationAngle()) 79 , m_rotationAngle(initializer.rotationAngle())
80 , m_force(initializer.force()) 80 , m_force(initializer.force())
81 { 81 {
82 float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f; 82 float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f;
83 m_absoluteLocation = roundedLayoutPoint(m_pagePos.scaledBy(scaleFactor)); 83 m_absoluteLocation = roundedLayoutPoint(m_pagePos.scaledBy(scaleFactor));
84 } 84 }
85 85
86 PassRefPtrWillBeRawPtr<Touch> Touch::cloneWithNewTarget(EventTarget* eventTarget ) const 86 RawPtr<Touch> Touch::cloneWithNewTarget(EventTarget* eventTarget) const
87 { 87 {
88 return adoptRefWillBeNoop(new Touch(eventTarget, m_identifier, m_clientPos, m_screenPos, m_pagePos, m_radius, m_rotationAngle, m_force, m_absoluteLocation)) ; 88 return (new Touch(eventTarget, m_identifier, m_clientPos, m_screenPos, m_pag ePos, m_radius, m_rotationAngle, m_force, m_absoluteLocation));
89 } 89 }
90 90
91 DEFINE_TRACE(Touch) 91 DEFINE_TRACE(Touch)
92 { 92 {
93 visitor->trace(m_target); 93 visitor->trace(m_target);
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698