diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-20 20:54:57 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-20 20:54:57 +0000 |
commit | 7a60cd3a87912064436bc1f12d6b2ea3abddf961 (patch) | |
tree | 35324f6c57f6f39ae9f733b2b133488ab8892022 /ui/keyboard/keyboard_ui_handler.cc | |
parent | a72ef03eaa3b29a137c7d5953bcf3e124a76cf54 (diff) | |
download | chromium_src-7a60cd3a87912064436bc1f12d6b2ea3abddf961.zip chromium_src-7a60cd3a87912064436bc1f12d6b2ea3abddf961.tar.gz chromium_src-7a60cd3a87912064436bc1f12d6b2ea3abddf961.tar.bz2 |
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
Diffstat (limited to 'ui/keyboard/keyboard_ui_handler.cc')
-rw-r--r-- | ui/keyboard/keyboard_ui_handler.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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"; } } |