Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: ui/base/ime/input_method_tsf.h

Issue 22534003: Implements InputMethodTSF::IsCandidatePopupOpen(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes unittests. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/ime/input_method_tsf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | ui/base/ime/input_method_tsf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698