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

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, 8 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 , m_pagePos(FloatPoint(initializer.pageX(), initializer.pageY())) 79 , m_pagePos(FloatPoint(initializer.pageX(), initializer.pageY()))
80 , m_radius(FloatSize(initializer.radiusX(), initializer.radiusY())) 80 , m_radius(FloatSize(initializer.radiusX(), initializer.radiusY()))
81 , m_rotationAngle(initializer.rotationAngle()) 81 , m_rotationAngle(initializer.rotationAngle())
82 , m_force(initializer.force()) 82 , m_force(initializer.force())
83 , m_region(initializer.region()) 83 , m_region(initializer.region())
84 { 84 {
85 float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f; 85 float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f;
86 m_absoluteLocation = roundedLayoutPoint(m_pagePos.scaledBy(scaleFactor)); 86 m_absoluteLocation = roundedLayoutPoint(m_pagePos.scaledBy(scaleFactor));
87 } 87 }
88 88
89 PassRefPtrWillBeRawPtr<Touch> Touch::cloneWithNewTarget(EventTarget* eventTarget ) const 89 RawPtr<Touch> Touch::cloneWithNewTarget(EventTarget* eventTarget) const
90 { 90 {
91 return adoptRefWillBeNoop(new Touch(eventTarget, m_identifier, m_clientPos, m_screenPos, m_pagePos, m_radius, m_rotationAngle, m_force, m_region, m_absolute Location)); 91 return new Touch(eventTarget, m_identifier, m_clientPos, m_screenPos, m_page Pos, m_radius, m_rotationAngle, m_force, m_region, m_absoluteLocation);
92 } 92 }
93 93
94 DEFINE_TRACE(Touch) 94 DEFINE_TRACE(Touch)
95 { 95 {
96 visitor->trace(m_target); 96 visitor->trace(m_target);
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Touch.h ('k') | third_party/WebKit/Source/core/dom/Touch.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698