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

Side by Side Diff: third_party/WebKit/Source/core/events/WheelEvent.cpp

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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
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, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved.
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 20 matching lines...) Expand all
31 31
32 inline static unsigned convertDeltaMode(const PlatformWheelEvent& event) 32 inline static unsigned convertDeltaMode(const PlatformWheelEvent& event)
33 { 33 {
34 return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::DOM_DELTA _PAGE : WheelEvent::DOM_DELTA_PIXEL; 34 return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::DOM_DELTA _PAGE : WheelEvent::DOM_DELTA_PIXEL;
35 } 35 }
36 36
37 PassRefPtrWillBeRawPtr<WheelEvent> WheelEvent::create(const PlatformWheelEvent& event, PassRefPtrWillBeRawPtr<AbstractView> view) 37 PassRefPtrWillBeRawPtr<WheelEvent> WheelEvent::create(const PlatformWheelEvent& event, PassRefPtrWillBeRawPtr<AbstractView> view)
38 { 38 {
39 return adoptRefWillBeNoop(new WheelEvent(FloatPoint(event.wheelTicksX(), eve nt.wheelTicksY()), FloatPoint(event.deltaX(), event.deltaY()), 39 return adoptRefWillBeNoop(new WheelEvent(FloatPoint(event.wheelTicksX(), eve nt.wheelTicksY()), FloatPoint(event.deltaX(), event.deltaY()),
40 convertDeltaMode(event), view, event.globalPosition(), event.position(), 40 convertDeltaMode(event), view, event.globalPosition(), event.position(),
41 event.modifiers(), 41 event.getModifiers(),
42 MouseEvent::platformModifiersToButtons(event.modifiers()), event.timesta mp(), 42 MouseEvent::platformModifiersToButtons(event.getModifiers()), event.time stamp(),
43 event.canScroll(), event.resendingPluginId(), event.hasPreciseScrollingD eltas(), 43 event.canScroll(), event.resendingPluginId(), event.hasPreciseScrollingD eltas(),
44 static_cast<Event::RailsMode>(event.getRailsMode()))); 44 static_cast<Event::RailsMode>(event.getRailsMode())));
45 } 45 }
46 46
47 WheelEvent::WheelEvent() 47 WheelEvent::WheelEvent()
48 : m_deltaX(0) 48 : m_deltaX(0)
49 , m_deltaY(0) 49 , m_deltaY(0)
50 , m_deltaZ(0) 50 , m_deltaZ(0)
51 , m_deltaMode(DOM_DELTA_PIXEL) 51 , m_deltaMode(DOM_DELTA_PIXEL)
52 , m_canScroll(true) 52 , m_canScroll(true)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 { 108 {
109 return EventDispatchMediator::create(this); 109 return EventDispatchMediator::create(this);
110 } 110 }
111 111
112 DEFINE_TRACE(WheelEvent) 112 DEFINE_TRACE(WheelEvent)
113 { 113 {
114 MouseEvent::trace(visitor); 114 MouseEvent::trace(visitor);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698