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

Side by Side Diff: third_party/WebKit/Source/core/input/PointerEventManager.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/input/PointerEventManager.h" 5 #include "core/input/PointerEventManager.h"
6 6
7 #include "core/dom/shadow/FlatTreeTraversal.h" 7 #include "core/dom/shadow/FlatTreeTraversal.h"
8 #include "core/events/MouseEvent.h" 8 #include "core/events/MouseEvent.h"
9 #include "core/input/EventHandler.h" 9 #include "core/input/EventHandler.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 namespace { 13 namespace {
14 14
15 const AtomicString& pointerEventNameForTouchPointState(PlatformTouchPoint::State state) 15 const AtomicString& pointerEventNameForTouchPointState(PlatformTouchPoint::Touch State state)
16 { 16 {
17 switch (state) { 17 switch (state) {
18 case PlatformTouchPoint::TouchReleased: 18 case PlatformTouchPoint::TouchReleased:
19 return EventTypeNames::pointerup; 19 return EventTypeNames::pointerup;
20 case PlatformTouchPoint::TouchCancelled: 20 case PlatformTouchPoint::TouchCancelled:
21 return EventTypeNames::pointercancel; 21 return EventTypeNames::pointercancel;
22 case PlatformTouchPoint::TouchPressed: 22 case PlatformTouchPoint::TouchPressed:
23 return EventTypeNames::pointerdown; 23 return EventTypeNames::pointerdown;
24 case PlatformTouchPoint::TouchMoved: 24 case PlatformTouchPoint::TouchMoved:
25 return EventTypeNames::pointermove; 25 return EventTypeNames::pointermove;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 DEFINE_TRACE(PointerEventManager) 338 DEFINE_TRACE(PointerEventManager)
339 { 339 {
340 #if ENABLE(OILPAN) 340 #if ENABLE(OILPAN)
341 visitor->trace(m_nodeUnderPointer); 341 visitor->trace(m_nodeUnderPointer);
342 #endif 342 #endif
343 } 343 }
344 344
345 345
346 } // namespace blink 346 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698