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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 2240983003: Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and ncarter's review Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <tuple> 10 #include <tuple>
(...skipping 28 matching lines...) Expand all
39 #include "content/browser/renderer_host/overscroll_controller.h" 39 #include "content/browser/renderer_host/overscroll_controller.h"
40 #include "content/browser/renderer_host/overscroll_controller_delegate.h" 40 #include "content/browser/renderer_host/overscroll_controller_delegate.h"
41 #include "content/browser/renderer_host/render_view_host_factory.h" 41 #include "content/browser/renderer_host/render_view_host_factory.h"
42 #include "content/browser/renderer_host/render_widget_host_delegate.h" 42 #include "content/browser/renderer_host/render_widget_host_delegate.h"
43 #include "content/browser/renderer_host/render_widget_host_impl.h" 43 #include "content/browser/renderer_host/render_widget_host_impl.h"
44 #include "content/browser/renderer_host/resize_lock.h" 44 #include "content/browser/renderer_host/resize_lock.h"
45 #include "content/browser/renderer_host/text_input_manager.h" 45 #include "content/browser/renderer_host/text_input_manager.h"
46 #include "content/browser/web_contents/web_contents_view_aura.h" 46 #include "content/browser/web_contents/web_contents_view_aura.h"
47 #include "content/common/host_shared_bitmap_manager.h" 47 #include "content/common/host_shared_bitmap_manager.h"
48 #include "content/common/input/synthetic_web_input_event_builders.h" 48 #include "content/common/input/synthetic_web_input_event_builders.h"
49 #include "content/common/input/web_input_event_traits.h"
50 #include "content/common/input_messages.h" 49 #include "content/common/input_messages.h"
51 #include "content/common/text_input_state.h" 50 #include "content/common/text_input_state.h"
52 #include "content/common/view_messages.h" 51 #include "content/common/view_messages.h"
53 #include "content/public/browser/render_widget_host_view.h" 52 #include "content/public/browser/render_widget_host_view.h"
54 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 53 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
55 #include "content/public/browser/web_contents_view_delegate.h" 54 #include "content/public/browser/web_contents_view_delegate.h"
56 #include "content/public/common/context_menu_params.h" 55 #include "content/public/common/context_menu_params.h"
57 #include "content/public/test/mock_render_process_host.h" 56 #include "content/public/test/mock_render_process_host.h"
58 #include "content/public/test/test_browser_context.h" 57 #include "content/public/test/test_browser_context.h"
59 #include "content/test/test_render_view_host.h" 58 #include "content/test/test_render_view_host.h"
(...skipping 15 matching lines...) Expand all
75 #include "ui/aura/test/test_window_delegate.h" 74 #include "ui/aura/test/test_window_delegate.h"
76 #include "ui/aura/window.h" 75 #include "ui/aura/window.h"
77 #include "ui/aura/window_event_dispatcher.h" 76 #include "ui/aura/window_event_dispatcher.h"
78 #include "ui/aura/window_observer.h" 77 #include "ui/aura/window_observer.h"
79 #include "ui/base/clipboard/clipboard.h" 78 #include "ui/base/clipboard/clipboard.h"
80 #include "ui/base/ui_base_types.h" 79 #include "ui/base/ui_base_types.h"
81 #include "ui/compositor/compositor.h" 80 #include "ui/compositor/compositor.h"
82 #include "ui/compositor/layer_tree_owner.h" 81 #include "ui/compositor/layer_tree_owner.h"
83 #include "ui/compositor/test/draw_waiter_for_test.h" 82 #include "ui/compositor/test/draw_waiter_for_test.h"
84 #include "ui/events/blink/blink_event_util.h" 83 #include "ui/events/blink/blink_event_util.h"
84 #include "ui/events/blink/web_input_event_traits.h"
85 #include "ui/events/event.h" 85 #include "ui/events/event.h"
86 #include "ui/events/event_utils.h" 86 #include "ui/events/event_utils.h"
87 #include "ui/events/gesture_detection/gesture_configuration.h" 87 #include "ui/events/gesture_detection/gesture_configuration.h"
88 #include "ui/events/keycodes/dom/dom_code.h" 88 #include "ui/events/keycodes/dom/dom_code.h"
89 #include "ui/events/keycodes/dom/keycode_converter.h" 89 #include "ui/events/keycodes/dom/keycode_converter.h"
90 #include "ui/events/test/event_generator.h" 90 #include "ui/events/test/event_generator.h"
91 #include "ui/gfx/geometry/rect.h" 91 #include "ui/gfx/geometry/rect.h"
92 #include "ui/gfx/selection_bound.h" 92 #include "ui/gfx/selection_bound.h"
93 #include "ui/wm/core/default_activation_client.h" 93 #include "ui/wm/core/default_activation_client.h"
94 #include "ui/wm/core/default_screen_position_client.h" 94 #include "ui/wm/core/default_screen_position_client.h"
95 #include "ui/wm/core/window_util.h" 95 #include "ui/wm/core/window_util.h"
96 96
97 using testing::_; 97 using testing::_;
98 98
99 using blink::WebGestureEvent; 99 using blink::WebGestureEvent;
100 using blink::WebInputEvent; 100 using blink::WebInputEvent;
101 using blink::WebMouseEvent; 101 using blink::WebMouseEvent;
102 using blink::WebMouseWheelEvent; 102 using blink::WebMouseWheelEvent;
103 using blink::WebTouchEvent; 103 using blink::WebTouchEvent;
104 using blink::WebTouchPoint; 104 using blink::WebTouchPoint;
105 using ui::WebInputEventTraits;
105 106
106 namespace content { 107 namespace content {
107 namespace { 108 namespace {
108 109
109 class TestOverscrollDelegate : public OverscrollControllerDelegate { 110 class TestOverscrollDelegate : public OverscrollControllerDelegate {
110 public: 111 public:
111 explicit TestOverscrollDelegate(RenderWidgetHostView* view) 112 explicit TestOverscrollDelegate(RenderWidgetHostView* view)
112 : view_(view), 113 : view_(view),
113 current_mode_(OVERSCROLL_NONE), 114 current_mode_(OVERSCROLL_NONE),
114 completed_mode_(OVERSCROLL_NONE), 115 completed_mode_(OVERSCROLL_NONE),
(...skipping 4455 matching lines...) Expand 10 before | Expand all | Expand 10 after
4570 4571
4571 // Retrieve the selected text from clipboard and verify it is as expected. 4572 // Retrieve the selected text from clipboard and verify it is as expected.
4572 base::string16 result_text; 4573 base::string16 result_text;
4573 clipboard->ReadText(ui::CLIPBOARD_TYPE_SELECTION, &result_text); 4574 clipboard->ReadText(ui::CLIPBOARD_TYPE_SELECTION, &result_text);
4574 EXPECT_EQ(expected_text, result_text); 4575 EXPECT_EQ(expected_text, result_text);
4575 } 4576 }
4576 } 4577 }
4577 #endif 4578 #endif
4578 4579
4579 } // namespace content 4580 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698