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

Side by Side Diff: components/html_viewer/input_events_unittest.cc

Issue 1484013003: mustash: Implement basic input event routing in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed dependency for unit test Created 5 years 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 | « components/html_viewer/ime_controller.cc ('k') | content/renderer/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "components/html_viewer/blink_input_events_type_converters.h" 6 #include "mojo/converters/blink/blink_input_events_type_converters.h"
7 #include "mojo/converters/input_events/input_events_type_converters.h" 7 #include "mojo/converters/input_events/input_events_type_converters.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h" 9 #include "third_party/WebKit/public/web/WebInputEvent.h"
10 #include "ui/events/event.h" 10 #include "ui/events/event.h"
11 #include "ui/events/event_utils.h" 11 #include "ui/events/event_utils.h"
12 #include "ui/events/test/events_test_utils.h" 12 #include "ui/events/test/events_test_utils.h"
13 13
14 using ui::EventTimeForNow; 14 using ui::EventTimeForNow;
15 using blink::WebInputEvent; 15 using blink::WebInputEvent;
16 using blink::WebMouseEvent; 16 using blink::WebMouseEvent;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 scoped_ptr<ui::MouseWheelEvent> ui_wheel( 89 scoped_ptr<ui::MouseWheelEvent> ui_wheel(
90 static_cast<ui::MouseWheelEvent*>(new_event.release())); 90 static_cast<ui::MouseWheelEvent*>(new_event.release()));
91 91
92 EXPECT_EQ(-1 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->x_offset()); 92 EXPECT_EQ(-1 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->x_offset());
93 EXPECT_EQ(-2 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->y_offset()); 93 EXPECT_EQ(-2 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->y_offset());
94 } 94 }
95 95
96 } // namespace 96 } // namespace
97 } // namespace mojo 97 } // namespace mojo
OLDNEW
« no previous file with comments | « components/html_viewer/ime_controller.cc ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698