From 7a60cd3a87912064436bc1f12d6b2ea3abddf961 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 20 Mar 2014 20:54:57 +0000 Subject: Remove window/host accessors from WindowEventDispatcher. Include-What-You-Use for WindowTreeHost. TBR=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/196383014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258401 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/keyboard/keyboard_ui_handler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui/keyboard/keyboard_ui_handler.cc') diff --git a/ui/keyboard/keyboard_ui_handler.cc b/ui/keyboard/keyboard_ui_handler.cc index c0873b8..88f4751 100644 --- a/ui/keyboard/keyboard_ui_handler.cc +++ b/ui/keyboard/keyboard_ui_handler.cc @@ -14,7 +14,7 @@ #include "content/public/browser/web_ui.h" #include "ui/aura/client/aura_constants.h" #include "ui/aura/window.h" -#include "ui/aura/window_event_dispatcher.h" +#include "ui/aura/window_tree_host.h" #include "ui/base/ime/input_method.h" #include "ui/base/ime/text_input_client.h" #include "ui/keyboard/keyboard_controller.h" @@ -115,9 +115,9 @@ void KeyboardUIHandler::HandleSendKeyEventMessage( return; } - aura::WindowEventDispatcher* dispatcher = web_ui()->GetWebContents()-> - GetView()->GetNativeView()->GetHost()->dispatcher(); - if (!dispatcher) { + aura::WindowTreeHost* host = + web_ui()->GetWebContents()->GetView()->GetNativeView()->GetHost(); + if (!host) { LOG(ERROR) << "sendKeyEvent failed: no dispatcher"; return; } @@ -127,7 +127,7 @@ void KeyboardUIHandler::HandleSendKeyEventMessage( key_code, key_name, modifiers, - dispatcher)) { + host)) { LOG(ERROR) << "sendKeyEvent failed"; } } -- cgit v1.1