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

Side by Side Diff: Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp

Issue 11369231: [Sanity Review] cc: Mark an event has not-handled if it didn't cause a scroll (Closed) Base URL: git://git.webkit.org/WebKit.git@master
Patch Set: Created 8 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual ~MockWebInputHandlerClient() { } 52 virtual ~MockWebInputHandlerClient() { }
53 53
54 54
55 MOCK_METHOD0(pinchGestureBegin, void()); 55 MOCK_METHOD0(pinchGestureBegin, void());
56 MOCK_METHOD2(pinchGestureUpdate, void(float magnifyDelta, WebPoint anchor)); 56 MOCK_METHOD2(pinchGestureUpdate, void(float magnifyDelta, WebPoint anchor));
57 MOCK_METHOD0(pinchGestureEnd, void()); 57 MOCK_METHOD0(pinchGestureEnd, void());
58 58
59 MOCK_METHOD0(scheduleAnimation, void()); 59 MOCK_METHOD0(scheduleAnimation, void());
60 60
61 MOCK_METHOD2(scrollBegin, ScrollStatus(WebPoint, WebInputHandlerClient::Scro llInputType)); 61 MOCK_METHOD2(scrollBegin, ScrollStatus(WebPoint, WebInputHandlerClient::Scro llInputType));
62 MOCK_METHOD2(scrollBy, void(WebPoint, WebSize)); 62 MOCK_METHOD2(scrollBy, bool(WebPoint, WebSize));
63 MOCK_METHOD0(scrollEnd, void()); 63 MOCK_METHOD0(scrollEnd, void());
64 64
65 private: 65 private:
66 virtual void startPageScaleAnimation(WebSize targetPosition, 66 virtual void startPageScaleAnimation(WebSize targetPosition,
67 bool anchorPoint, 67 bool anchorPoint,
68 float pageScale, 68 float pageScale,
69 double startTimeMs, 69 double startTimeMs,
70 double durationMs) OVERRIDE { } 70 double durationMs) OVERRIDE { }
71 }; 71 };
72 72
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 testing::Field(&WebActiveWheelFlingParameters::point, testing::Eq(flingP oint)), 528 testing::Field(&WebActiveWheelFlingParameters::point, testing::Eq(flingP oint)),
529 testing::Field(&WebActiveWheelFlingParameters::globalPoint, testing::Eq( flingGlobalPoint)), 529 testing::Field(&WebActiveWheelFlingParameters::globalPoint, testing::Eq( flingGlobalPoint)),
530 testing::Field(&WebActiveWheelFlingParameters::modifiers, testing::Eq(mo difiers)), 530 testing::Field(&WebActiveWheelFlingParameters::modifiers, testing::Eq(mo difiers)),
531 testing::Field(&WebActiveWheelFlingParameters::startTime, testing::Eq(30 )), 531 testing::Field(&WebActiveWheelFlingParameters::startTime, testing::Eq(30 )),
532 testing::Field(&WebActiveWheelFlingParameters::cumulativeScroll, 532 testing::Field(&WebActiveWheelFlingParameters::cumulativeScroll,
533 testing::Field(&WebSize::height, testing::Lt(0)))))); 533 testing::Field(&WebSize::height, testing::Lt(0))))));
534 m_inputHandler->animate(30.2); 534 m_inputHandler->animate(30.2);
535 } 535 }
536 536
537 } 537 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698