diff options
Diffstat (limited to 'chromium/ui/base/ime/win/tsf_text_store.h')
-rw-r--r-- | chromium/ui/base/ime/win/tsf_text_store.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/ui/base/ime/win/tsf_text_store.h b/chromium/ui/base/ime/win/tsf_text_store.h index 10bbae5a50e..bf02704ffff 100644 --- a/chromium/ui/base/ime/win/tsf_text_store.h +++ b/chromium/ui/base/ime/win/tsf_text_store.h @@ -102,6 +102,7 @@ class TextInputClient; class COMPONENT_EXPORT(UI_BASE_IME_WIN) TSFTextStore : public ITextStoreACP, public ITfContextOwnerCompositionSink, + public ITfLanguageProfileNotifySink, public ITfKeyTraceEventSink, public ITfTextEditSink { public: @@ -216,6 +217,10 @@ class COMPONENT_EXPORT(UI_BASE_IME_WIN) TSFTextStore IFACEMETHODIMP OnEndComposition( ITfCompositionView* composition_view) override; + // ITfLanguageProfileNotifySink: + IFACEMETHODIMP OnLanguageChange(LANGID langid, BOOL* pfAccept) override; + IFACEMETHODIMP OnLanguageChanged() override; + // ITfTextEditSink: IFACEMETHODIMP OnEndEdit(ITfContext* context, TfEditCookie read_only_edit_cookie, @@ -391,6 +396,10 @@ class COMPONENT_EXPORT(UI_BASE_IME_WIN) TSFTextStore // |selection_.end()|: 4 gfx::Range selection_; + // Indicates if the selection is an interim character. Please refer to + // https://docs.microsoft.com/en-us/windows/win32/api/textstor/ns-textstor-ts_selectionstyle + bool is_selection_interim_char_ = false; + // |start_offset| and |end_offset| of |text_spans_| indicates // the offsets in |string_buffer_document_|. // Example: "aoi" is committed. There are two underlines in "umi" and "no". |