Index: ui/views/widget/widget.h |
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h |
index 192901995a000a21b5cc52cd314bdbb97b5b9782..431f835c0fbff421faa73ccc4f2411e7caa2dab2 100644 |
--- a/ui/views/widget/widget.h |
+++ b/ui/views/widget/widget.h |
@@ -45,6 +45,7 @@ namespace ui { |
class Accelerator; |
class Compositor; |
class DefaultThemeProvider; |
+class InputMethod; |
class Layer; |
class NativeTheme; |
class OSExchangeData; |
@@ -538,6 +539,11 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
InputMethod* GetInputMethod(); |
const InputMethod* GetInputMethod() const; |
+ // Returns the ui::InputMethod for this widget. |
+ // TODO(yukishiino): Rename this method to GetInputMethod once we remove |
+ // views::InputMethod. |
+ ui::InputMethod* GetHostInputMethod(); |
+ |
// Starts a drag operation for the specified view. This blocks until the drag |
// operation completes. |view| can be NULL. |
// If the view is non-NULL it can be accessed during the drag by calling |