| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void DidOverscroll(int routing_id, | 133 void DidOverscroll(int routing_id, |
| 134 const ui::DidOverscrollParams& params) override {} | 134 const ui::DidOverscrollParams& params) override {} |
| 135 void DidStopFlinging(int routing_id) override {} | 135 void DidStopFlinging(int routing_id) override {} |
| 136 void DispatchNonBlockingEventToMainThread( | 136 void DispatchNonBlockingEventToMainThread( |
| 137 int routing_id, | 137 int routing_id, |
| 138 blink::WebScopedInputEvent event, | 138 blink::WebScopedInputEvent event, |
| 139 const ui::LatencyInfo& latency_info) override {} | 139 const ui::LatencyInfo& latency_info) override {} |
| 140 | 140 |
| 141 void NotifyInputEventHandled(int routing_id, | 141 void NotifyInputEventHandled(int routing_id, |
| 142 blink::WebInputEvent::Type type, | 142 blink::WebInputEvent::Type type, |
| 143 blink::WebInputEventResult result, |
| 143 InputEventAckState ack_result) override {} | 144 InputEventAckState ack_result) override {} |
| 144 void ProcessRafAlignedInput(int routing_id) override {} | 145 void ProcessRafAlignedInput(int routing_id) override {} |
| 145 | 146 |
| 146 private: | 147 private: |
| 147 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); | 148 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 // Implementation of RenderWidget for testing, performs no initialization. | 151 // Implementation of RenderWidget for testing, performs no initialization. |
| 151 class TestRenderWidget : public RenderWidget { | 152 class TestRenderWidget : public RenderWidget { |
| 152 public: | 153 public: |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 EXPECT_FALSE(ack_callback.get()); | 494 EXPECT_FALSE(ack_callback.get()); |
| 494 | 495 |
| 495 VerifyAndRunQueues(true, true); | 496 VerifyAndRunQueues(true, true); |
| 496 | 497 |
| 497 // The ack callback should have been called | 498 // The ack callback should have been called |
| 498 EXPECT_TRUE(test_callback->called()); | 499 EXPECT_TRUE(test_callback->called()); |
| 499 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); | 500 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); |
| 500 } | 501 } |
| 501 | 502 |
| 502 } // namespace content | 503 } // namespace content |
| OLD | NEW |