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

Unified Diff: ash/test/ash_test_base.cc

Issue 1209663002: Use EventHandler for IME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « ash/test/ash_test_base.h ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 31afda9f5148507dfb617a2ec2bfcc565b8cbf4b..eb573dbcea363d679409f61be0d84f5e3673a729 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -9,6 +9,7 @@
#include "ash/ash_switches.h"
#include "ash/display/display_controller.h"
+#include "ash/ime/input_method_event_handler.h"
#include "ash/shell.h"
#include "ash/shell/toplevel_window.h"
#include "ash/test/ash_test_helper.h"
@@ -360,6 +361,10 @@ void AshTestBase::UnblockUserSession() {
SetUserAddingScreenRunning(false);
}
+void AshTestBase::DisableIME() {
+ Shell::GetInstance()->RemovePreTargetHandler(
+ Shell::GetInstance()->display_controller()->input_method_event_handler());
+}
} // namespace test
} // namespace ash
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698