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

Unified Diff: ui/base/ime/win/tsf_event_router.h

Issue 11141019: Re-enable CJK omnibox suggest on Metro UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 8 years, 2 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 | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | ui/base/ime/win/tsf_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/win/tsf_event_router.h
diff --git a/ui/base/ime/win/tsf_event_router.h b/ui/base/ime/win/tsf_event_router.h
index 2691c71fbde3419c737ffaf330675ccc005ca94b..39bb6dd2d54f7bde5d76dc93c2b661775907f6e9 100644
--- a/ui/base/ime/win/tsf_event_router.h
+++ b/ui/base/ime/win/tsf_event_router.h
@@ -23,29 +23,28 @@ namespace ui {
// class anyway, this interface is derived from IUnknown.
class TsfEventRouter : public IUnknown {
public:
- typedef base::Callback<void ()> TextUpdatedCallback;
- typedef base::Callback<void (size_t window_count)>
- CandidateWindowCountChangedCallback;
+ class Observer {
+ public:
+ virtual ~Observer() {}
+
+ // Called when the text contents are updated.
+ virtual void OnTextUpdated() = 0;
+
+ // Called when the number of currently opened candidate windows changes.
+ virtual void OnCandidateWindowCountChanged(size_t window_count) = 0;
+ };
virtual ~TsfEventRouter();
- // Sets |manager| to be monitored. |manager| can be NULL.
- virtual void SetManager(ITfThreadMgr* manager) = 0;
+ // Sets |manager| to be monitored and |observer| to be notified. |manager| and
+ // |observer| can be NULL.
+ virtual void SetManager(ITfThreadMgr* manager,
+ Observer* observer) = 0;
// Returns true if the IME is composing texts.
virtual bool IsImeComposing() = 0;
- // Sets the callback function which is invoked when the text contents is
- // updated.
- virtual void SetTextUpdatedCallback(
- const TextUpdatedCallback& callback) = 0;
-
- // Sets the callback function which is invoked when the number of currently
- // candidate window opened is changed.
- virtual void SetCandidateWindowStatusChangedCallback(
- const CandidateWindowCountChangedCallback& callback) = 0;
-
- // Factory function, creates a new instance and retunrns ownership.
+ // Factory function, creates a new instance which the caller owns.
static UI_EXPORT TsfEventRouter* Create();
protected:
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | ui/base/ime/win/tsf_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698