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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInputAgent.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp
index e474f020579fa65cfc641314ff30f993eb0353cc..1d2b45ee1406a0a970ade46e48b8cab436c382fe 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp
@@ -71,7 +71,7 @@ unsigned GetEventModifiers(int modifiers)
class SyntheticInspectorTouchPoint : public blink::PlatformTouchPoint {
public:
- SyntheticInspectorTouchPoint(int id, State state, const blink::IntPoint& screenPos, const blink::IntPoint& pos, int radiusX, int radiusY, double rotationAngle, double force)
+ SyntheticInspectorTouchPoint(int id, TouchState state, const blink::IntPoint& screenPos, const blink::IntPoint& pos, int radiusX, int radiusY, double rotationAngle, double force)
{
m_pointerProperties.id = id;
m_screenPos = screenPos;
@@ -85,7 +85,7 @@ public:
class SyntheticInspectorTouchEvent : public blink::PlatformTouchEvent {
public:
- SyntheticInspectorTouchEvent(const blink::PlatformEvent::Type type, unsigned modifiers, double timestamp)
+ SyntheticInspectorTouchEvent(const blink::PlatformEvent::EventType type, unsigned modifiers, double timestamp)
{
m_type = type;
m_modifiers = modifiers;
@@ -120,7 +120,7 @@ InspectorInputAgent::~InspectorInputAgent()
void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& type, PassOwnPtr<protocol::Array<protocol::Input::TouchPoint>> touchPoints, const protocol::Maybe<int>& modifiers, const protocol::Maybe<double>& timestamp)
{
- PlatformEvent::Type convertedType;
+ PlatformEvent::EventType convertedType;
if (type == "touchStart") {
convertedType = PlatformEvent::TouchStart;
} else if (type == "touchEnd") {
@@ -158,7 +158,7 @@ void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t
return;
}
- PlatformTouchPoint::State convertedState;
+ PlatformTouchPoint::TouchState convertedState;
String state = point->getState();
if (state == "touchPressed") {
convertedState = PlatformTouchPoint::TouchPressed;

Powered by Google App Engine
This is Rietveld 408576698