Index: ui/base/ime/input_method_tsf.h |
diff --git a/ui/base/ime/input_method_tsf.h b/ui/base/ime/input_method_tsf.h |
index 45c5add8b17e2e48607fcd216c1eeb7b38cb088c..98fa1f738c8e05018700b6a24305e5b516c1249c 100644 |
--- a/ui/base/ime/input_method_tsf.h |
+++ b/ui/base/ime/input_method_tsf.h |
@@ -9,15 +9,19 @@ |
#include <string> |
+#include "base/memory/scoped_ptr.h" |
#include "ui/base/ime/input_method_win.h" |
namespace ui { |
+class TSFEventRouter; |
+ |
// An InputMethod implementation based on Windows TSF API. |
class UI_EXPORT InputMethodTSF : public InputMethodWin { |
public: |
InputMethodTSF(internal::InputMethodDelegate* delegate, |
HWND toplevel_window_handle); |
+ virtual ~InputMethodTSF(); |
// Overridden from InputMethod: |
virtual void OnFocus() OVERRIDE; |
@@ -37,6 +41,8 @@ class UI_EXPORT InputMethodTSF : public InputMethodWin { |
TextInputClient* focused) OVERRIDE; |
private: |
+ class TSFEventObserver; |
+ |
// Asks the client to confirm current composition text. |
void ConfirmCompositionText(); |
@@ -44,6 +50,10 @@ class UI_EXPORT InputMethodTSF : public InputMethodWin { |
// focus. |
bool IsWindowFocused(const TextInputClient* client) const; |
+ // TSF event router and observer. |
+ scoped_ptr<TSFEventObserver> tsf_event_observer_; |
+ scoped_ptr<TSFEventRouter> tsf_event_router_; |
+ |
DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); |
}; |