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

Side by Side Diff: third_party/WebKit/Source/core/events/GestureEvent.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 velocityY = event.velocityY(); 80 velocityY = event.velocityY();
81 break; 81 break;
82 case PlatformEvent::GestureTwoFingerTap: 82 case PlatformEvent::GestureTwoFingerTap:
83 case PlatformEvent::GesturePinchBegin: 83 case PlatformEvent::GesturePinchBegin:
84 case PlatformEvent::GesturePinchEnd: 84 case PlatformEvent::GesturePinchEnd:
85 case PlatformEvent::GesturePinchUpdate: 85 case PlatformEvent::GesturePinchUpdate:
86 case PlatformEvent::GestureTapDownCancel: 86 case PlatformEvent::GestureTapDownCancel:
87 default: 87 default:
88 return nullptr; 88 return nullptr;
89 } 89 }
90 return adoptRefWillBeNoop(new GestureEvent(eventType, view, event.globalPosi tion().x(), event.globalPosition().y(), event.position().x(), event.position().y (), event.modifiers(), deltaX, deltaY, velocityX, velocityY, inertial, event.tim estamp(), event.resendingPluginId(), source)); 90 return adoptRefWillBeNoop(new GestureEvent(eventType, view, event.globalPosi tion().x(), event.globalPosition().y(), event.position().x(), event.position().y (), event.getModifiers(), deltaX, deltaY, velocityX, velocityY, inertial, event. timestamp(), event.resendingPluginId(), source));
91 } 91 }
92 92
93 const AtomicString& GestureEvent::interfaceName() const 93 const AtomicString& GestureEvent::interfaceName() const
94 { 94 {
95 // FIXME: when a GestureEvent.idl interface is defined, return the string "G estureEvent". 95 // FIXME: when a GestureEvent.idl interface is defined, return the string "G estureEvent".
96 // Until that happens, do not advertise an interface that does not exist, si nce it will 96 // Until that happens, do not advertise an interface that does not exist, si nce it will
97 // trip up the bindings integrity checks. 97 // trip up the bindings integrity checks.
98 return UIEvent::interfaceName(); 98 return UIEvent::interfaceName();
99 } 99 }
100 100
(...skipping 24 matching lines...) Expand all
125 , m_resendingPluginId(resendingPluginId) 125 , m_resendingPluginId(resendingPluginId)
126 { 126 {
127 } 127 }
128 128
129 DEFINE_TRACE(GestureEvent) 129 DEFINE_TRACE(GestureEvent)
130 { 130 {
131 MouseRelatedEvent::trace(visitor); 131 MouseRelatedEvent::trace(visitor);
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698