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

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

Issue 149073009: Remove InputMethodTSF, TSFEventRouter, TSFTextStore, TSFBridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert input_method_imm32 changes Created 6 years, 11 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 | « ui/base/ime/win/tsf_bridge.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
deleted file mode 100644
index bf2e4a9e47eaa166f19c4baf2f3ae7db763daf51..0000000000000000000000000000000000000000
--- a/ui/base/ime/win/tsf_event_router.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_BASE_IME_WIN_TSF_EVENT_ROUTER_H_
-#define UI_BASE_IME_WIN_TSF_EVENT_ROUTER_H_
-
-#include <atlbase.h>
-#include <atlcom.h>
-#include <msctf.h>
-
-#include <set>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "ui/base/ime/text_input_type.h"
-#include "ui/base/ui_base_export.h"
-#include "ui/gfx/range/range.h"
-
-struct ITfDocumentMgr;
-
-namespace ui {
-
-class TSFEventRouterObserver {
- public:
- TSFEventRouterObserver() {}
-
- // Called when the number of currently opened candidate windows changes.
- virtual void OnCandidateWindowCountChanged(size_t window_count) {}
-
- // Called when a composition is started.
- virtual void OnTSFStartComposition() {}
-
- // Called when the text contents are updated. If there is no composition,
- // gfx::Range::InvalidRange is passed to |composition_range|.
- virtual void OnTextUpdated(const gfx::Range& composition_range) {}
-
- // Called when a composition is terminated.
- virtual void OnTSFEndComposition() {}
-
- protected:
- virtual ~TSFEventRouterObserver() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TSFEventRouterObserver);
-};
-
-// This class monitores TSF related events and forwards them to given
-// |observer|.
-class UI_BASE_EXPORT TSFEventRouter {
- public:
- // Do not pass NULL to |observer|.
- explicit TSFEventRouter(TSFEventRouterObserver* observer);
- virtual ~TSFEventRouter();
-
- // Returns true if the IME is composing text.
- bool IsImeComposing();
-
- // Callbacks from the TSFEventRouterDelegate:
- void OnCandidateWindowCountChanged(size_t window_count);
- void OnTSFStartComposition();
- void OnTextUpdated(const gfx::Range& composition_range);
- void OnTSFEndComposition();
-
- // Sets |thread_manager| to be monitored. |thread_manager| can be NULL.
- void SetManager(ITfThreadMgr* thread_manager);
-
- private:
- class Delegate;
-
- CComPtr<Delegate> delegate_;
-
- TSFEventRouterObserver* observer_;
-
- DISALLOW_COPY_AND_ASSIGN(TSFEventRouter);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_IME_WIN_TSF_EVENT_ROUTER_H_
« no previous file with comments | « ui/base/ime/win/tsf_bridge.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