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

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

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change comments in histogram Created 4 years, 7 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/renderer/input/main_thread_event_queue.cc ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698