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

Unified Diff: content/browser/accessibility/touch_accessibility_aura_browsertest.cc

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/touch_accessibility_aura_browsertest.cc
diff --git a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
index f8c5959a5f599868f3e5e7334737395ec8571f32..dd59c9d1d06d8bab28da0bb82a7e9e5dd459ca06 100644
--- a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
+++ b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
@@ -17,7 +17,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/events/event.h"
-#include "ui/events/event_processor.h"
+#include "ui/events/event_sink.h"
#include "ui/events/event_utils.h"
namespace content {
@@ -43,14 +43,14 @@ class TouchAccessibilityBrowserTest : public ContentBrowserTest {
void SendTouchExplorationEvent(int x, int y) {
aura::Window* window = shell()->web_contents()->GetContentNativeView();
- ui::EventProcessor* dispatcher = window->GetHost()->event_processor();
+ ui::EventSink* sink = window->GetHost()->event_sink();
gfx::Rect bounds = window->GetBoundsInRootWindow();
gfx::Point location(bounds.x() + x, bounds.y() + y);
int flags = ui::EF_TOUCH_ACCESSIBILITY;
std::unique_ptr<ui::Event> mouse_move_event(
new ui::MouseEvent(ui::ET_MOUSE_MOVED, location, location,
ui::EventTimeForNow(), flags, 0));
- ignore_result(dispatcher->OnEventFromSource(mouse_move_event.get()));
+ ignore_result(sink->OnEventFromSource(mouse_move_event.get()));
}
DISALLOW_COPY_AND_ASSIGN(TouchAccessibilityBrowserTest);

Powered by Google App Engine
This is Rietveld 408576698