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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactory.h

Issue 2818083002: Rewrite references to "wtf/" to "platform/wtf/" in the rest of core/. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 #ifndef PointerEventFactory_h 5 #ifndef PointerEventFactory_h
6 #define PointerEventFactory_h 6 #define PointerEventFactory_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/PointerEvent.h" 9 #include "core/events/PointerEvent.h"
10 #include "platform/wtf/Allocator.h"
11 #include "platform/wtf/HashMap.h"
10 #include "public/platform/WebPointerProperties.h" 12 #include "public/platform/WebPointerProperties.h"
11 #include "wtf/Allocator.h"
12 #include "wtf/HashMap.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // Helper class for tracking the pointer ids for each type of PointerEvents. 16 // Helper class for tracking the pointer ids for each type of PointerEvents.
17 // Using id re-mapping at this layer, this class makes sure that regardless of 17 // Using id re-mapping at this layer, this class makes sure that regardless of
18 // the domain of the id (i.e. in touch or pen) the corresponding pointer event 18 // the domain of the id (i.e. in touch or pen) the corresponding pointer event
19 // will have a unique id amongst all pointer events as per pointer events' 19 // will have a unique id amongst all pointer events as per pointer events'
20 // specification. This class intended to behave the same as existing browsers as 20 // specification. This class intended to behave the same as existing browsers as
21 // much as possible for compatibility reasons. Particularly it behaves very 21 // much as possible for compatibility reasons. Particularly it behaves very
22 // similar to MS Edge to have pointer event ids generated by mouse always equal 22 // similar to MS Edge to have pointer event ids generated by mouse always equal
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WebPointerProperties::PointerType::kLastEntry) + 126 WebPointerProperties::PointerType::kLastEntry) +
127 1]; 127 1];
128 int id_count_[static_cast<int>( 128 int id_count_[static_cast<int>(
129 WebPointerProperties::PointerType::kLastEntry) + 129 WebPointerProperties::PointerType::kLastEntry) +
130 1]; 130 1];
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // PointerEventFactory_h 135 #endif // PointerEventFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698