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

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

Issue 1877073003: Respect the order of input messages from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add DCHECKs for thread Created 4 years, 6 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Empty implementation of InputHandlerManagerClient. 117 // Empty implementation of InputHandlerManagerClient.
118 class TestInputHandlerManagerClient 118 class TestInputHandlerManagerClient
119 : public content::InputHandlerManagerClient { 119 : public content::InputHandlerManagerClient {
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 RegisterRoutingID(int routing_id) override {}
127 void DidRemoveInputHandler(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 content::DidOverscrollParams& params) override {} 129 const content::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 NotifyInputEventHandled(int routing_id, 132 void NotifyInputEventHandled(int routing_id,
133 blink::WebInputEvent::Type type) override {} 133 blink::WebInputEvent::Type type) override {}
134 134
135 private: 135 private:
136 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient); 136 DISALLOW_COPY_AND_ASSIGN(TestInputHandlerManagerClient);
137 }; 137 };
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 EXPECT_FALSE(ack_callback.get()); 481 EXPECT_FALSE(ack_callback.get());
482 482
483 VerifyAndRunQueues(true, true); 483 VerifyAndRunQueues(true, true);
484 484
485 // The ack callback should have been called 485 // The ack callback should have been called
486 EXPECT_TRUE(test_callback->called()); 486 EXPECT_TRUE(test_callback->called());
487 EXPECT_EQ(EventResult::HANDLED, test_callback->result()); 487 EXPECT_EQ(EventResult::HANDLED, test_callback->result());
488 } 488 }
489 489
490 } // namespace content 490 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager_client.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698