OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 public: | 120 public: |
121 TestInputHandlerManagerClient() {} | 121 TestInputHandlerManagerClient() {} |
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 DidAddInputHandler(int routing_id) override {} | 126 void DidAddInputHandler(int routing_id) override {} |
127 void DidRemoveInputHandler(int routing_id) override {} | 127 void DidRemoveInputHandler(int routing_id) override {} |
128 void DidOverscroll(int routing_id, | 128 void DidOverscroll(int routing_id, |
129 const content::DidOverscrollParams& params) override {} | 129 const content::DidOverscrollParams& params) override {} |
| 130 void DidStartFlinging(int routing_id) override {} |
130 void DidStopFlinging(int routing_id) override {} | 131 void DidStopFlinging(int routing_id) override {} |
131 void NotifyInputEventHandled(int routing_id, | 132 void NotifyInputEventHandled(int routing_id, |
132 blink::WebInputEvent::Type type) override {} | 133 blink::WebInputEvent::Type type) override {} |
133 | 134 |
134 private: | 135 private: |
135 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); | 136 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); |
136 }; | 137 }; |
137 | 138 |
138 // Implementation of RenderWidget for testing, performs no initialization. | 139 // Implementation of RenderWidget for testing, performs no initialization. |
139 class TestRenderWidget : public content::RenderWidget { | 140 class TestRenderWidget : public content::RenderWidget { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 EXPECT_FALSE(ack_callback.get()); | 479 EXPECT_FALSE(ack_callback.get()); |
479 | 480 |
480 VerifyAndRunQueues(true, true); | 481 VerifyAndRunQueues(true, true); |
481 | 482 |
482 // The ack callback should have been called | 483 // The ack callback should have been called |
483 EXPECT_TRUE(test_callback->called()); | 484 EXPECT_TRUE(test_callback->called()); |
484 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); | 485 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); |
485 } | 486 } |
486 | 487 |
487 } // namespace content | 488 } // namespace content |
OLD | NEW |