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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp

Issue 2394653003: reflow comments in core/events,core/fileapi (Closed)
Patch Set: Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/events/PointerEventFactory.h" 5 #include "core/events/PointerEventFactory.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/page/Page.h" 8 #include "core/page/Page.h"
9 #include "public/platform/WebPointerProperties.h" 9 #include "public/platform/WebPointerProperties.h"
10 #include <climits> 10 #include <climits>
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 EXPECT_FALSE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart)); 246 EXPECT_FALSE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart));
247 247
248 EXPECT_FALSE(m_pointerEventFactory.isActive(m_mappedIdStart + 1)); 248 EXPECT_FALSE(m_pointerEventFactory.isActive(m_mappedIdStart + 1));
249 EXPECT_FALSE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart + 1)); 249 EXPECT_FALSE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart + 1));
250 250
251 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, 251 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0,
252 m_mappedIdStart + 1, true); 252 m_mappedIdStart + 1, true);
253 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, 253 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0,
254 m_mappedIdStart + 1, true); 254 m_mappedIdStart + 1, true);
255 255
256 // Remove an obsolete (i.e. already removed) pointer event which should have n o effect 256 // Remove an obsolete (i.e. already removed) pointer event which should have
257 // no effect.
257 m_pointerEventFactory.remove(pointerEvent1->pointerId()); 258 m_pointerEventFactory.remove(pointerEvent1->pointerId());
258 259
259 EXPECT_TRUE(m_pointerEventFactory.isActive(m_mappedIdStart + 1)); 260 EXPECT_TRUE(m_pointerEventFactory.isActive(m_mappedIdStart + 1));
260 EXPECT_TRUE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart + 1)); 261 EXPECT_TRUE(m_pointerEventFactory.isActiveButtonsState(m_mappedIdStart + 1));
261 262
262 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0, 263 createAndCheckTouchEvent(WebPointerProperties::PointerType::Touch, 0,
263 m_mappedIdStart + 1, true); 264 m_mappedIdStart + 1, true);
264 createAndCheckTouchCancel(WebPointerProperties::PointerType::Touch, 0, 265 createAndCheckTouchCancel(WebPointerProperties::PointerType::Touch, 0,
265 m_mappedIdStart + 1, true); 266 m_mappedIdStart + 1, true);
266 267
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 382
382 for (int i = 0; i < 100; ++i) { 383 for (int i = 0; i < 100; ++i) {
383 createAndCheckTouchEvent(WebPointerProperties::PointerType::Mouse, i, 384 createAndCheckTouchEvent(WebPointerProperties::PointerType::Mouse, i,
384 m_expectedMouseId, true); 385 m_expectedMouseId, true);
385 } 386 }
386 createAndCheckTouchCancel(WebPointerProperties::PointerType::Mouse, 0, 387 createAndCheckTouchCancel(WebPointerProperties::PointerType::Mouse, 0,
387 m_expectedMouseId, true); 388 m_expectedMouseId, true);
388 } 389 }
389 390
390 } // namespace blink 391 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698