Index: ui/views/test/widget_test.h |
diff --git a/ui/views/test/widget_test.h b/ui/views/test/widget_test.h |
index 16cf492c1456f956a7004ad5f45b6b3833796fe3..41a2647b7a65e11dcfa43f2306866d1a041079d5 100644 |
--- a/ui/views/test/widget_test.h |
+++ b/ui/views/test/widget_test.h |
@@ -18,6 +18,9 @@ |
#endif |
namespace ui { |
+namespace internal { |
+class InputMethodDelegate; |
+} |
class EventProcessor; |
} |
@@ -130,6 +133,10 @@ class WidgetTest : public ViewsTestBase { |
// processor. |
static ui::EventProcessor* GetEventProcessor(Widget* widget); |
+ // Get the InputMethodDelegate, for setting on a Mock InputMethod in tests. |
+ static ui::internal::InputMethodDelegate* GetInputMethodDelegateForWidget( |
+ Widget* widget); |
+ |
#if defined(OS_MACOSX) |
static scoped_ptr<FakeActivation> FakeWidgetIsActiveAlways(); |
#endif |