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

Side by Side Diff: Source/core/events/WheelEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class WheelEvent FINAL : public MouseEvent { 47 class WheelEvent FINAL : public MouseEvent {
48 public: 48 public:
49 enum { TickMultiplier = 120 }; 49 enum { TickMultiplier = 120 };
50 50
51 enum DeltaMode { 51 enum DeltaMode {
52 DOM_DELTA_PIXEL = 0, 52 DOM_DELTA_PIXEL = 0,
53 DOM_DELTA_LINE, 53 DOM_DELTA_LINE,
54 DOM_DELTA_PAGE 54 DOM_DELTA_PAGE
55 }; 55 };
56 56
57 static PassRefPtrWillBeRawPtr<WheelEvent> create() 57 static PassRefPtr<WheelEvent> create()
58 { 58 {
59 return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent); 59 return adoptRef(new WheelEvent);
60 } 60 }
61 61
62 static PassRefPtrWillBeRawPtr<WheelEvent> create(const AtomicString& type, c onst WheelEventInit& initializer) 62 static PassRefPtr<WheelEvent> create(const AtomicString& type, const WheelEv entInit& initializer)
63 { 63 {
64 return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent(type, ini tializer)); 64 return adoptRef(new WheelEvent(type, initializer));
65 } 65 }
66 66
67 static PassRefPtrWillBeRawPtr<WheelEvent> create(const FloatPoint& wheelTick s, 67 static PassRefPtr<WheelEvent> create(const FloatPoint& wheelTicks,
68 const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtr<AbstractView> view, 68 const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtr<AbstractView> view,
69 const IntPoint& screenLocation, const IntPoint& pageLocation, 69 const IntPoint& screenLocation, const IntPoint& pageLocation,
70 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionIn vertedFromDevice) 70 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionIn vertedFromDevice)
71 { 71 {
72 return adoptRefWillBeRefCountedGarbageCollected(new WheelEvent(wheelTick s, rawDelta, deltaMode, view, 72 return adoptRef(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
73 screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey, direct ionInvertedFromDevice)); 73 screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey, direct ionInvertedFromDevice));
74 } 74 }
75 75
76 void initWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<AbstractView>, 76 void initWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<AbstractView>,
77 int screenX, int screenY, int pageX, int pageY, 77 int screenX, int screenY, int pageX, int pageY,
78 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 78 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
79 79
80 void initWebKitWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<AbstractV iew>, 80 void initWebKitWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<AbstractV iew>,
81 int screenX, int screenY, int pageX, int pageY, 81 int screenX, int screenY, int pageX, int pageY,
82 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 82 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 static PassRefPtr<WheelEventDispatchMediator> create(const PlatformWheelEven t&, PassRefPtr<AbstractView>); 121 static PassRefPtr<WheelEventDispatchMediator> create(const PlatformWheelEven t&, PassRefPtr<AbstractView>);
122 private: 122 private:
123 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtr<AbstractVie w>); 123 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtr<AbstractVie w>);
124 WheelEvent* event() const; 124 WheelEvent* event() const;
125 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 125 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
126 }; 126 };
127 127
128 } // namespace WebCore 128 } // namespace WebCore
129 129
130 #endif // WheelEvent_h 130 #endif // WheelEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698