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

Side by Side Diff: ui/events/blink/input_handler_proxy_unittest.cc

Issue 2384053002: cancel overlay-scrollbar hover state when moving pointer out of window for ChromeOS (Closed)
Patch Set: quick return Created 4 years, 2 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 | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/web_input_event.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/events/blink/input_handler_proxy.h" 5 #include "ui/events/blink/input_handler_proxy.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/test/histogram_tester.h" 10 #include "base/test/histogram_tester.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return false; 144 return false;
145 } 145 }
146 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { 146 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override {
147 return false; 147 return false;
148 } 148 }
149 149
150 void BindToClient(cc::InputHandlerClient* client) override {} 150 void BindToClient(cc::InputHandlerClient* client) override {}
151 151
152 void MouseDown() override {} 152 void MouseDown() override {}
153 void MouseUp() override {} 153 void MouseUp() override {}
154 void MouseLeave() override {}
154 155
155 void MouseMoveAt(const gfx::Point& mouse_position) override {} 156 void MouseMoveAt(const gfx::Point& mouse_position) override {}
156 157
157 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, 158 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt,
158 bool(const gfx::Point& point, 159 bool(const gfx::Point& point,
159 cc::InputHandler::ScrollInputType type)); 160 cc::InputHandler::ScrollInputType type));
160 161
161 MOCK_CONST_METHOD1( 162 MOCK_CONST_METHOD1(
162 GetEventListenerProperties, 163 GetEventListenerProperties,
163 cc::EventListenerProperties(cc::EventListenerClass event_class)); 164 cc::EventListenerProperties(cc::EventListenerClass event_class));
(...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), 2815 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1),
2815 base::Bucket(5, 1), base::Bucket(14, 1))); 2816 base::Bucket(5, 1), base::Bucket(14, 1)));
2816 } 2817 }
2817 2818
2818 2819
2819 INSTANTIATE_TEST_CASE_P(AnimateInput, 2820 INSTANTIATE_TEST_CASE_P(AnimateInput,
2820 InputHandlerProxyTest, 2821 InputHandlerProxyTest,
2821 testing::ValuesIn(test_types)); 2822 testing::ValuesIn(test_types));
2822 } // namespace test 2823 } // namespace test
2823 } // namespace ui 2824 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698