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

Side by Side Diff: content/renderer/render_widget_unittest.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | extensions/browser/DEPS » ('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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/test/histogram_tester.h" 11 #include "base/test/histogram_tester.h"
12 #include "content/common/input/synthetic_web_input_event_builders.h" 12 #include "content/common/input/synthetic_web_input_event_builders.h"
13 #include "content/common/input_messages.h" 13 #include "content/common/input_messages.h"
14 #include "content/common/resize_params.h" 14 #include "content/common/resize_params.h"
15 #include "content/public/test/mock_render_thread.h" 15 #include "content/public/test/mock_render_thread.h"
16 #include "content/renderer/devtools/render_widget_screen_metrics_emulator.h" 16 #include "content/renderer/devtools/render_widget_screen_metrics_emulator.h"
17 #include "content/test/fake_compositor_dependencies.h" 17 #include "content/test/fake_compositor_dependencies.h"
18 #include "content/test/mock_render_process.h" 18 #include "content/test/mock_render_process.h"
19 #include "ipc/ipc_test_sink.h" 19 #include "ipc/ipc_test_sink.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/WebKit/public/platform/WebInputEvent.h"
22 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" 23 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
23 #include "third_party/WebKit/public/web/WebInputEvent.h"
24 #include "ui/events/blink/web_input_event_traits.h" 24 #include "ui/events/blink/web_input_event_traits.h"
25 #include "ui/gfx/geometry/rect.h" 25 #include "ui/gfx/geometry/rect.h"
26 26
27 using testing::_; 27 using testing::_;
28 28
29 namespace content { 29 namespace content {
30 30
31 namespace { 31 namespace {
32 32
33 const char* EVENT_LISTENER_RESULT_HISTOGRAM = "Event.PassiveListeners"; 33 const char* EVENT_LISTENER_RESULT_HISTOGRAM = "Event.PassiveListeners";
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 blink::WebRect popup_emulated_rect(130, 170, 100, 400); 485 blink::WebRect popup_emulated_rect(130, 170, 100, 400);
486 widget()->setWindowRect(popup_emulated_rect); 486 widget()->setWindowRect(popup_emulated_rect);
487 487
488 EXPECT_EQ(popup_emulated_rect.x, widget()->windowRect().x); 488 EXPECT_EQ(popup_emulated_rect.x, widget()->windowRect().x);
489 EXPECT_EQ(popup_emulated_rect.y, widget()->windowRect().y); 489 EXPECT_EQ(popup_emulated_rect.y, widget()->windowRect().y);
490 EXPECT_EQ(popup_emulated_rect.x, widget()->viewRect().x); 490 EXPECT_EQ(popup_emulated_rect.x, widget()->viewRect().x);
491 EXPECT_EQ(popup_emulated_rect.y, widget()->viewRect().y); 491 EXPECT_EQ(popup_emulated_rect.y, widget()->viewRect().y);
492 } 492 }
493 493
494 } // namespace content 494 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | extensions/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698