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

Side by Side Diff: content/renderer/mus/compositor_mus_connection_unittest.cc

Issue 2362863003: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | ui/events/blink/input_handler_proxy.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 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 #include "content/renderer/mus/compositor_mus_connection.h" 5 #include "content/renderer/mus/compositor_mus_connection.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ~TestInputHandlerManagerClient() override{}; 122 ~TestInputHandlerManagerClient() override{};
123 123
124 // content::InputHandlerManagerClient: 124 // content::InputHandlerManagerClient:
125 void SetBoundHandler(const Handler& handler) override {} 125 void SetBoundHandler(const Handler& handler) override {}
126 void RegisterRoutingID(int routing_id) override {} 126 void RegisterRoutingID(int routing_id) override {}
127 void UnregisterRoutingID(int routing_id) override {} 127 void UnregisterRoutingID(int routing_id) override {}
128 void DidOverscroll(int routing_id, 128 void DidOverscroll(int routing_id,
129 const ui::DidOverscrollParams& params) override {} 129 const ui::DidOverscrollParams& params) override {}
130 void DidStartFlinging(int routing_id) override {} 130 void DidStartFlinging(int routing_id) override {}
131 void DidStopFlinging(int routing_id) override {} 131 void DidStopFlinging(int routing_id) override {}
132 void DispatchNonBlockingEventToMainThread(
133 int routing_id,
134 ui::ScopedWebInputEvent event,
135 const ui::LatencyInfo& latency_info) override {}
136
132 void NotifyInputEventHandled( 137 void NotifyInputEventHandled(
133 int routing_id, 138 int routing_id,
134 blink::WebInputEvent::Type type, 139 blink::WebInputEvent::Type type,
135 content::InputEventAckState ack_result) override {} 140 content::InputEventAckState ack_result) override {}
136 141
137 private: 142 private:
138 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); 143 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient);
139 }; 144 };
140 145
141 // Implementation of RenderWidget for testing, performs no initialization. 146 // Implementation of RenderWidget for testing, performs no initialization.
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 EXPECT_FALSE(ack_callback.get()); 488 EXPECT_FALSE(ack_callback.get());
484 489
485 VerifyAndRunQueues(true, true); 490 VerifyAndRunQueues(true, true);
486 491
487 // The ack callback should have been called 492 // The ack callback should have been called
488 EXPECT_TRUE(test_callback->called()); 493 EXPECT_TRUE(test_callback->called());
489 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); 494 EXPECT_EQ(EventResult::HANDLED, test_callback->result());
490 } 495 }
491 496
492 } // namespace content 497 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | ui/events/blink/input_handler_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698