Skip to content

Commit

Permalink
Update WeaselTSF.h
Browse files Browse the repository at this point in the history
  • Loading branch information
QianmuZ authored Jul 25, 2023
1 parent 67f117b commit b7882cb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions WeaselTSF/WeaselTSF.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ class WeaselTSF:
BOOL _IsKeyboardDisabled();
BOOL _IsKeyboardOpen();
HRESULT _SetKeyboardOpen(BOOL fOpen);
HRESULT _GetCompartmentDWORD(DWORD& value, const GUID guid);
HRESULT _SetCompartmentDWORD(const DWORD& value, const GUID guid);

/* Composition */
void _StartComposition(com_ptr<ITfContext> pContext, BOOL fCUASWorkaroundEnabled);
Expand Down Expand Up @@ -118,13 +116,8 @@ class WeaselTSF:


com_ptr<ITfThreadMgr> _GetThreadMgr() { return _pThreadMgr; }
void HandleUICallback(size_t* const sel, size_t* const hov, bool* const next);

private:
/* ui callback functions private */
void _SelectCandidateOnCurrentPage(const size_t index);
void _HandleMouseHoverEvent(const size_t index);
void _HandleMousePageEvent(const bool nextPage);
/* TSF Related */
BOOL _InitThreadMgrEventSink();
void _UninitThreadMgrEventSink();
Expand Down Expand Up @@ -169,7 +162,6 @@ class WeaselTSF:
std::wstring _editSessionText;

com_ptr<CCompartmentEventSink> _pKeyboardCompartmentSink;
com_ptr<CCompartmentEventSink> _pConvertionCompartmentSink;

com_ptr<ITfComposition> _pComposition;

Expand All @@ -191,4 +183,6 @@ class WeaselTSF:

// guidatom for the display attibute.
TfGuidAtom _gaDisplayAttributeInput;

bool _WinWord{};
};

0 comments on commit b7882cb

Please sign in to comment.