summaryrefslogtreecommitdiffstats
path: root/views/widget/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r--views/widget/widget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h
index c57375d..8bf3ec0 100644
--- a/views/widget/widget.h
+++ b/views/widget/widget.h
@@ -33,6 +33,7 @@ using ui::ThemeProvider;
namespace views {
class DefaultThemeProvider;
+class InputMethod;
class NativeWidget;
class RootView;
class TooltipManager;
@@ -224,6 +225,10 @@ class Widget : public internal::NativeWidgetDelegate,
// TODO(beng): remove virtual.
virtual FocusManager* GetFocusManager();
+ // Returns the InputMethod for this widget.
+ // Note that all widgets in a widget hierarchy share the same input method.
+ InputMethod* GetInputMethod();
+
// Returns true if the native view |native_view| is contained in the
// views::View hierarchy rooted at this widget.
// TODO(beng): const.