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

Side by Side Diff: win8/metro_driver/ime/text_store.h

Issue 625073003: Replacing the OVERRIDE with override and FINAL with final in win8 folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected patchset-1 Created 6 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 unified diff | Download patch
« no previous file with comments | « win8/metro_driver/ime/text_service.cc ('k') | win8/metro_driver/metro_driver_win7.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ 5 #ifndef WIN8_METRO_DRIVER_IME_TEXT_STORE_H_
6 #define WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ 6 #define WIN8_METRO_DRIVER_IME_TEXT_STORE_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 public: 95 public:
96 virtual ~TextStore(); 96 virtual ~TextStore();
97 97
98 BEGIN_COM_MAP(TextStore) 98 BEGIN_COM_MAP(TextStore)
99 COM_INTERFACE_ENTRY(ITextStoreACP) 99 COM_INTERFACE_ENTRY(ITextStoreACP)
100 COM_INTERFACE_ENTRY(ITfContextOwnerCompositionSink) 100 COM_INTERFACE_ENTRY(ITfContextOwnerCompositionSink)
101 COM_INTERFACE_ENTRY(ITfTextEditSink) 101 COM_INTERFACE_ENTRY(ITfTextEditSink)
102 END_COM_MAP() 102 END_COM_MAP()
103 103
104 // ITextStoreACP: 104 // ITextStoreACP:
105 STDMETHOD(AdviseSink)(REFIID iid, IUnknown* unknown, DWORD mask) OVERRIDE; 105 STDMETHOD(AdviseSink)(REFIID iid, IUnknown* unknown, DWORD mask) override;
106 STDMETHOD(FindNextAttrTransition)(LONG acp_start, 106 STDMETHOD(FindNextAttrTransition)(LONG acp_start,
107 LONG acp_halt, 107 LONG acp_halt,
108 ULONG num_filter_attributes, 108 ULONG num_filter_attributes,
109 const TS_ATTRID* filter_attributes, 109 const TS_ATTRID* filter_attributes,
110 DWORD flags, 110 DWORD flags,
111 LONG* acp_next, 111 LONG* acp_next,
112 BOOL* found, 112 BOOL* found,
113 LONG* found_offset) OVERRIDE; 113 LONG* found_offset) override;
114 STDMETHOD(GetACPFromPoint)(TsViewCookie view_cookie, 114 STDMETHOD(GetACPFromPoint)(TsViewCookie view_cookie,
115 const POINT* point, 115 const POINT* point,
116 DWORD flags, 116 DWORD flags,
117 LONG* acp) OVERRIDE; 117 LONG* acp) override;
118 STDMETHOD(GetActiveView)(TsViewCookie* view_cookie) OVERRIDE; 118 STDMETHOD(GetActiveView)(TsViewCookie* view_cookie) override;
119 STDMETHOD(GetEmbedded)(LONG acp_pos, 119 STDMETHOD(GetEmbedded)(LONG acp_pos,
120 REFGUID service, 120 REFGUID service,
121 REFIID iid, 121 REFIID iid,
122 IUnknown** unknown) OVERRIDE; 122 IUnknown** unknown) override;
123 STDMETHOD(GetEndACP)(LONG* acp) OVERRIDE; 123 STDMETHOD(GetEndACP)(LONG* acp) override;
124 STDMETHOD(GetFormattedText)(LONG acp_start, 124 STDMETHOD(GetFormattedText)(LONG acp_start,
125 LONG acp_end, 125 LONG acp_end,
126 IDataObject** data_object) OVERRIDE; 126 IDataObject** data_object) override;
127 STDMETHOD(GetScreenExt)(TsViewCookie view_cookie, RECT* rect) OVERRIDE; 127 STDMETHOD(GetScreenExt)(TsViewCookie view_cookie, RECT* rect) override;
128 STDMETHOD(GetSelection)(ULONG selection_index, 128 STDMETHOD(GetSelection)(ULONG selection_index,
129 ULONG selection_buffer_size, 129 ULONG selection_buffer_size,
130 TS_SELECTION_ACP* selection_buffer, 130 TS_SELECTION_ACP* selection_buffer,
131 ULONG* fetched_count) OVERRIDE; 131 ULONG* fetched_count) override;
132 STDMETHOD(GetStatus)(TS_STATUS* pdcs) OVERRIDE; 132 STDMETHOD(GetStatus)(TS_STATUS* pdcs) override;
133 STDMETHOD(GetText)(LONG acp_start, 133 STDMETHOD(GetText)(LONG acp_start,
134 LONG acp_end, 134 LONG acp_end,
135 wchar_t* text_buffer, 135 wchar_t* text_buffer,
136 ULONG text_buffer_size, 136 ULONG text_buffer_size,
137 ULONG* text_buffer_copied, 137 ULONG* text_buffer_copied,
138 TS_RUNINFO* run_info_buffer, 138 TS_RUNINFO* run_info_buffer,
139 ULONG run_info_buffer_size, 139 ULONG run_info_buffer_size,
140 ULONG* run_info_buffer_copied, 140 ULONG* run_info_buffer_copied,
141 LONG* next_acp) OVERRIDE; 141 LONG* next_acp) override;
142 STDMETHOD(GetTextExt)(TsViewCookie view_cookie, 142 STDMETHOD(GetTextExt)(TsViewCookie view_cookie,
143 LONG acp_start, 143 LONG acp_start,
144 LONG acp_end, 144 LONG acp_end,
145 RECT* rect, 145 RECT* rect,
146 BOOL* clipped) OVERRIDE; 146 BOOL* clipped) override;
147 STDMETHOD(GetWnd)(TsViewCookie view_cookie, HWND* window_handle) OVERRIDE; 147 STDMETHOD(GetWnd)(TsViewCookie view_cookie, HWND* window_handle) override;
148 STDMETHOD(InsertEmbedded)(DWORD flags, 148 STDMETHOD(InsertEmbedded)(DWORD flags,
149 LONG acp_start, 149 LONG acp_start,
150 LONG acp_end, 150 LONG acp_end,
151 IDataObject* data_object, 151 IDataObject* data_object,
152 TS_TEXTCHANGE* change) OVERRIDE; 152 TS_TEXTCHANGE* change) override;
153 STDMETHOD(InsertEmbeddedAtSelection)(DWORD flags, 153 STDMETHOD(InsertEmbeddedAtSelection)(DWORD flags,
154 IDataObject* data_object, 154 IDataObject* data_object,
155 LONG* acp_start, 155 LONG* acp_start,
156 LONG* acp_end, 156 LONG* acp_end,
157 TS_TEXTCHANGE* change) OVERRIDE; 157 TS_TEXTCHANGE* change) override;
158 STDMETHOD(InsertTextAtSelection)(DWORD flags, 158 STDMETHOD(InsertTextAtSelection)(DWORD flags,
159 const wchar_t* text_buffer, 159 const wchar_t* text_buffer,
160 ULONG text_buffer_size, 160 ULONG text_buffer_size,
161 LONG* acp_start, 161 LONG* acp_start,
162 LONG* acp_end, 162 LONG* acp_end,
163 TS_TEXTCHANGE* text_change) OVERRIDE; 163 TS_TEXTCHANGE* text_change) override;
164 STDMETHOD(QueryInsert)(LONG acp_test_start, 164 STDMETHOD(QueryInsert)(LONG acp_test_start,
165 LONG acp_test_end, 165 LONG acp_test_end,
166 ULONG text_size, 166 ULONG text_size,
167 LONG* acp_result_start, 167 LONG* acp_result_start,
168 LONG* acp_result_end) OVERRIDE; 168 LONG* acp_result_end) override;
169 STDMETHOD(QueryInsertEmbedded)(const GUID* service, 169 STDMETHOD(QueryInsertEmbedded)(const GUID* service,
170 const FORMATETC* format, 170 const FORMATETC* format,
171 BOOL* insertable) OVERRIDE; 171 BOOL* insertable) override;
172 STDMETHOD(RequestAttrsAtPosition)(LONG acp_pos, 172 STDMETHOD(RequestAttrsAtPosition)(LONG acp_pos,
173 ULONG attribute_buffer_size, 173 ULONG attribute_buffer_size,
174 const TS_ATTRID* attribute_buffer, 174 const TS_ATTRID* attribute_buffer,
175 DWORD flags) OVERRIDE; 175 DWORD flags) override;
176 STDMETHOD(RequestAttrsTransitioningAtPosition)( 176 STDMETHOD(RequestAttrsTransitioningAtPosition)(
177 LONG acp_pos, 177 LONG acp_pos,
178 ULONG attribute_buffer_size, 178 ULONG attribute_buffer_size,
179 const TS_ATTRID* attribute_buffer, 179 const TS_ATTRID* attribute_buffer,
180 DWORD flags) OVERRIDE; 180 DWORD flags) override;
181 STDMETHOD(RequestLock)(DWORD lock_flags, HRESULT* result) OVERRIDE; 181 STDMETHOD(RequestLock)(DWORD lock_flags, HRESULT* result) override;
182 STDMETHOD(RequestSupportedAttrs)(DWORD flags, 182 STDMETHOD(RequestSupportedAttrs)(DWORD flags,
183 ULONG attribute_buffer_size, 183 ULONG attribute_buffer_size,
184 const TS_ATTRID* attribute_buffer) OVERRIDE; 184 const TS_ATTRID* attribute_buffer) override;
185 STDMETHOD(RetrieveRequestedAttrs)(ULONG attribute_buffer_size, 185 STDMETHOD(RetrieveRequestedAttrs)(ULONG attribute_buffer_size,
186 TS_ATTRVAL* attribute_buffer, 186 TS_ATTRVAL* attribute_buffer,
187 ULONG* attribute_buffer_copied) OVERRIDE; 187 ULONG* attribute_buffer_copied) override;
188 STDMETHOD(SetSelection)(ULONG selection_buffer_size, 188 STDMETHOD(SetSelection)(ULONG selection_buffer_size,
189 const TS_SELECTION_ACP* selection_buffer) OVERRIDE; 189 const TS_SELECTION_ACP* selection_buffer) override;
190 STDMETHOD(SetText)(DWORD flags, 190 STDMETHOD(SetText)(DWORD flags,
191 LONG acp_start, 191 LONG acp_start,
192 LONG acp_end, 192 LONG acp_end,
193 const wchar_t* text_buffer, 193 const wchar_t* text_buffer,
194 ULONG text_buffer_size, 194 ULONG text_buffer_size,
195 TS_TEXTCHANGE* text_change) OVERRIDE; 195 TS_TEXTCHANGE* text_change) override;
196 STDMETHOD(UnadviseSink)(IUnknown* unknown) OVERRIDE; 196 STDMETHOD(UnadviseSink)(IUnknown* unknown) override;
197 197
198 // ITfContextOwnerCompositionSink: 198 // ITfContextOwnerCompositionSink:
199 STDMETHOD(OnStartComposition)(ITfCompositionView* composition_view, 199 STDMETHOD(OnStartComposition)(ITfCompositionView* composition_view,
200 BOOL* ok) OVERRIDE; 200 BOOL* ok) override;
201 STDMETHOD(OnUpdateComposition)(ITfCompositionView* composition_view, 201 STDMETHOD(OnUpdateComposition)(ITfCompositionView* composition_view,
202 ITfRange* range) OVERRIDE; 202 ITfRange* range) override;
203 STDMETHOD(OnEndComposition)(ITfCompositionView* composition_view) OVERRIDE; 203 STDMETHOD(OnEndComposition)(ITfCompositionView* composition_view) override;
204 204
205 // ITfTextEditSink: 205 // ITfTextEditSink:
206 STDMETHOD(OnEndEdit)(ITfContext* context, TfEditCookie read_only_edit_cookie, 206 STDMETHOD(OnEndEdit)(ITfContext* context, TfEditCookie read_only_edit_cookie,
207 ITfEditRecord* edit_record) OVERRIDE; 207 ITfEditRecord* edit_record) override;
208 208
209 // Cancels the ongoing composition if exists. 209 // Cancels the ongoing composition if exists.
210 bool CancelComposition(); 210 bool CancelComposition();
211 211
212 // Confirms the ongoing composition if exists. 212 // Confirms the ongoing composition if exists.
213 bool ConfirmComposition(); 213 bool ConfirmComposition();
214 214
215 // Sends OnLayoutChange() via |text_store_acp_sink_|. 215 // Sends OnLayoutChange() via |text_store_acp_sink_|.
216 void SendOnLayoutChange(); 216 void SendOnLayoutChange();
217 217
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // The delegate attached to this text store. 307 // The delegate attached to this text store.
308 TextStoreDelegate* delegate_; 308 TextStoreDelegate* delegate_;
309 309
310 DISALLOW_COPY_AND_ASSIGN(TextStore); 310 DISALLOW_COPY_AND_ASSIGN(TextStore);
311 }; 311 };
312 312
313 } // namespace metro_driver 313 } // namespace metro_driver
314 314
315 #endif // WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ 315 #endif // WIN8_METRO_DRIVER_IME_TEXT_STORE_H_
OLDNEW
« no previous file with comments | « win8/metro_driver/ime/text_service.cc ('k') | win8/metro_driver/metro_driver_win7.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698