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

Unified Diff: ui/keyboard/keyboard_ui_handler.cc

Issue 196383014: Remove window/host accessors from WED; IWYU for WTH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « ui/keyboard/DEPS ('k') | ui/keyboard/keyboard_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_ui_handler.cc
diff --git a/ui/keyboard/keyboard_ui_handler.cc b/ui/keyboard/keyboard_ui_handler.cc
index c0873b809211f805fd810f4a81cf2620b551247c..88f47514eb7c6579e238e2bde0faccb8f1186615 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";
}
}
« no previous file with comments | « ui/keyboard/DEPS ('k') | ui/keyboard/keyboard_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698