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

Unified Diff: ui/views/mus/views_mus_test_suite.cc

Issue 2728373003: Fixs bug resulting in double event delivery in mus (Closed)
Patch Set: comments 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: ui/views/mus/views_mus_test_suite.cc
diff --git a/ui/views/mus/views_mus_test_suite.cc b/ui/views/mus/views_mus_test_suite.cc
index 0812025fd782545e8c2c5463d779bccc9cd155e9..26236a5bce68a6de7264598974e70d1293a2f63b 100644
--- a/ui/views/mus/views_mus_test_suite.cc
+++ b/ui/views/mus/views_mus_test_suite.cc
@@ -25,6 +25,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/mus/window_tree_host_mus.h"
#include "ui/aura/test/env_test_helper.h"
+#include "ui/aura/test/mus/input_method_mus_test_api.h"
#include "ui/aura/window.h"
#include "ui/gl/gl_switches.h"
#include "ui/views/mus/desktop_window_tree_host_mus.h"
@@ -87,6 +88,12 @@ class PlatformTestHelperMus : public PlatformTestHelper {
static_cast<aura::WindowTreeClientDelegate*>(mus_client_.get())
->OnEmbedRootDestroyed(window_tree_host);
}
+ void DisableMusInputMethod(Widget* widget) override {
+ aura::WindowTreeHostMus* window_tree_host =
+ static_cast<aura::WindowTreeHostMus*>(
+ widget->GetNativeView()->GetHost());
+ aura::InputMethodMusTestApi::Disable(window_tree_host->input_method());
+ }
private:
std::unique_ptr<MusClient> mus_client_;

Powered by Google App Engine
This is Rietveld 408576698