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

Unified Diff: third_party/WebKit/Source/core/events/PointerIdManager.h

Issue 1426643008: Cleaning up PointerIdManager and add id re-mapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix EXPECT_EQ compilation error on Android Created 5 years 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/events/PointerIdManager.h
diff --git a/third_party/WebKit/Source/core/events/PointerIdManager.h b/third_party/WebKit/Source/core/events/PointerIdManager.h
deleted file mode 100644
index b3e01343bf4fefc6cbcc68ac76172fe634b890a1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/events/PointerIdManager.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PointerIdManager_h
-#define PointerIdManager_h
-
-#include "public/platform/WebPointerProperties.h"
-#include "wtf/Allocator.h"
-#include "wtf/ListHashSet.h"
-
-namespace blink {
-
-/**
- Helper class for tracking the primary pointer id for each type of PointerEvents.
-*/
-class PointerIdManager {
- DISALLOW_NEW();
-public:
- PointerIdManager();
- ~PointerIdManager();
- void clear();
- void add(WebPointerProperties::PointerType, unsigned);
- void remove(WebPointerProperties::PointerType, unsigned);
- bool isPrimary(WebPointerProperties::PointerType, unsigned);
-
-private:
- // TODO(crbug.com/537319): Switch to /one/ set of ids to guarantee uniqueness.
- ListHashSet<unsigned> m_ids[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + 1];
- bool m_hasPrimaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + 1];
-};
-
-} // namespace blink
-
-#endif // PointerIdManager_h

Powered by Google App Engine
This is Rietveld 408576698