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

Side by Side Diff: ui/events/blink/input_scroll_elasticity_controller_unittest.cc

Issue 2581943003: Move WebMouseWheelEvent into its own header file. (Closed)
Patch Set: Fix mac unittest Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/events/blink/input_handler_proxy_unittest.cc ('k') | ui/events/blink/web_input_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/blink/input_scroll_elasticity_controller.h" 5 #include "ui/events/blink/input_scroll_elasticity_controller.h"
6 6
7 #include "cc/input/input_handler.h" 7 #include "cc/input/input_handler.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/WebKit/public/platform/WebInputEvent.h" 9 #include "third_party/WebKit/public/platform/WebInputEvent.h"
10 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
10 11
11 namespace ui { 12 namespace ui {
12 namespace { 13 namespace {
13 14
14 enum Phase { 15 enum Phase {
15 PhaseNone = blink::WebMouseWheelEvent::PhaseNone, 16 PhaseNone = blink::WebMouseWheelEvent::PhaseNone,
16 PhaseBegan = blink::WebMouseWheelEvent::PhaseBegan, 17 PhaseBegan = blink::WebMouseWheelEvent::PhaseBegan,
17 PhaseStationary = blink::WebMouseWheelEvent::PhaseStationary, 18 PhaseStationary = blink::WebMouseWheelEvent::PhaseStationary,
18 PhaseChanged = blink::WebMouseWheelEvent::PhaseChanged, 19 PhaseChanged = blink::WebMouseWheelEvent::PhaseChanged,
19 PhaseEnded = blink::WebMouseWheelEvent::PhaseEnded, 20 PhaseEnded = blink::WebMouseWheelEvent::PhaseEnded,
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 TickCurrentTimeAndAnimate(); 416 TickCurrentTimeAndAnimate();
416 if (helper_.StretchAmount().IsZero()) 417 if (helper_.StretchAmount().IsZero())
417 break; 418 break;
418 ticks_to_zero += 1; 419 ticks_to_zero += 1;
419 } 420 }
420 EXPECT_GT(ticks_to_zero, 3); 421 EXPECT_GT(ticks_to_zero, 3);
421 } 422 }
422 423
423 } // namespace 424 } // namespace
424 } // namespace ui 425 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy_unittest.cc ('k') | ui/events/blink/web_input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698