| Index: views/widget/widget.h
|
| diff --git a/views/widget/widget.h b/views/widget/widget.h
|
| index c35202a190c0f484221120f60e524c83af77121b..aa93aff02126d8fe3268f54e6a95a4d7e4bcaacd 100644
|
| --- a/views/widget/widget.h
|
| +++ b/views/widget/widget.h
|
| @@ -13,6 +13,7 @@
|
| #include "ui/base/accessibility/accessibility_types.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "views/focus/focus_manager.h"
|
| +#include "views/ime/input_method_delegate.h"
|
| #include "views/widget/native_widget_delegate.h"
|
|
|
| namespace gfx {
|
| @@ -59,7 +60,8 @@ class Window;
|
| // transitional step.
|
| //
|
| class Widget : public internal::NativeWidgetDelegate,
|
| - public FocusTraversable {
|
| + public FocusTraversable,
|
| + public internal::InputMethodDelegate {
|
| public:
|
| struct CreateParams {
|
| enum Type {
|
| @@ -298,6 +300,7 @@ class Widget : public internal::NativeWidgetDelegate,
|
| virtual void OnSizeChanged(const gfx::Size& new_size) OVERRIDE;
|
| virtual bool HasFocusManager() const OVERRIDE;
|
| virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE;
|
| + virtual void OnKeyEvent(const KeyEvent& event) OVERRIDE;
|
| virtual bool OnMouseEvent(const MouseEvent& event) OVERRIDE;
|
| virtual void OnMouseCaptureLost() OVERRIDE;
|
|
|
| @@ -306,6 +309,9 @@ class Widget : public internal::NativeWidgetDelegate,
|
| virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE;
|
| virtual View* GetFocusTraversableParentView() OVERRIDE;
|
|
|
| + // Overridden from internal::InputMethodDelegate:
|
| + virtual bool DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE;
|
| +
|
| protected:
|
| // Creates the RootView to be used within this Widget. Subclasses may override
|
| // to create custom RootViews that do specialized event processing.
|
|
|