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

Side by Side Diff: Source/core/dom/Touch.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Text.h ('k') | Source/core/dom/TouchList.h » ('j') | 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 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 23 matching lines...) Expand all
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
37 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class LocalFrame; 41 class LocalFrame;
42 42
43 class Touch FINAL : public RefCountedWillBeGarbageCollected<Touch>, public Scrip tWrappable { 43 class Touch FINAL : public RefCountedWillBeGarbageCollected<Touch>, public Scrip tWrappable {
44 DEFINE_WRAPPERTYPEINFO();
44 public: 45 public:
45 static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget* target, 46 static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget* target,
46 unsigned identifier, const FloatPoint& screenPos, const FloatPoint& page Pos, 47 unsigned identifier, const FloatPoint& screenPos, const FloatPoint& page Pos,
47 const FloatSize& radius, float rotationAngle, float force) 48 const FloatSize& radius, float rotationAngle, float force)
48 { 49 {
49 return adoptRefWillBeNoop( 50 return adoptRefWillBeNoop(
50 new Touch(frame, target, identifier, screenPos, pagePos, radius, rot ationAngle, force)); 51 new Touch(frame, target, identifier, screenPos, pagePos, radius, rot ationAngle, force));
51 } 52 }
52 53
53 // DOM Touch implementation 54 // DOM Touch implementation
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 float m_rotationAngle; 97 float m_rotationAngle;
97 float m_force; 98 float m_force;
98 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre enPos, pagePos 99 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre enPos, pagePos
99 // or clientPos? absoluteLocation appears to be the same as pagePos but with out browser 100 // or clientPos? absoluteLocation appears to be the same as pagePos but with out browser
100 // scale applied. 101 // scale applied.
101 LayoutPoint m_absoluteLocation; 102 LayoutPoint m_absoluteLocation;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif /* Touch_h */ 107 #endif // Touch_h
OLDNEW
« no previous file with comments | « Source/core/dom/Text.h ('k') | Source/core/dom/TouchList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698