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

Side by Side Diff: xfa/fwl/core/ifwl_edit.cpp

Issue 2498163002: Cleanup cfwl_* files. (Closed)
Patch Set: Review feedback Created 4 years, 1 month 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 | « xfa/fwl/core/ifwl_edit.h ('k') | xfa/fwl/core/ifwl_listbox.h » ('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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/core/ifwl_edit.h" 7 #include "xfa/fwl/core/ifwl_edit.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 void IFWL_Edit::SetText(const CFX_WideString& wsText) { 290 void IFWL_Edit::SetText(const CFX_WideString& wsText) {
291 m_EdtEngine.SetText(wsText); 291 m_EdtEngine.SetText(wsText);
292 } 292 }
293 293
294 int32_t IFWL_Edit::GetTextLength() const { 294 int32_t IFWL_Edit::GetTextLength() const {
295 return m_EdtEngine.GetTextLength(); 295 return m_EdtEngine.GetTextLength();
296 } 296 }
297 297
298 void IFWL_Edit::GetText(CFX_WideString& wsText, 298 void IFWL_Edit::GetText(CFX_WideString& wsText,
299 int32_t nStart, 299 int32_t nStart,
300 int32_t nCount) { 300 int32_t nCount) const {
301 m_EdtEngine.GetText(wsText, nStart, nCount); 301 m_EdtEngine.GetText(wsText, nStart, nCount);
302 } 302 }
303 303
304 void IFWL_Edit::ClearText() { 304 void IFWL_Edit::ClearText() {
305 m_EdtEngine.ClearText(); 305 m_EdtEngine.ClearText();
306 } 306 }
307 307
308 void IFWL_Edit::AddSelRange(int32_t nStart, int32_t nCount) { 308 void IFWL_Edit::AddSelRange(int32_t nStart, int32_t nCount) {
309 m_EdtEngine.AddSelRange(nStart, nCount); 309 m_EdtEngine.AddSelRange(nStart, nCount);
310 } 310 }
311 311
312 int32_t IFWL_Edit::CountSelRanges() { 312 int32_t IFWL_Edit::CountSelRanges() const {
313 return m_EdtEngine.CountSelRanges(); 313 return m_EdtEngine.CountSelRanges();
314 } 314 }
315 315
316 int32_t IFWL_Edit::GetSelRange(int32_t nIndex, int32_t& nStart) { 316 int32_t IFWL_Edit::GetSelRange(int32_t nIndex, int32_t& nStart) const {
317 return m_EdtEngine.GetSelRange(nIndex, nStart); 317 return m_EdtEngine.GetSelRange(nIndex, nStart);
318 } 318 }
319 319
320 void IFWL_Edit::ClearSelections() { 320 void IFWL_Edit::ClearSelections() {
321 m_EdtEngine.ClearSelection(); 321 m_EdtEngine.ClearSelection();
322 } 322 }
323 323
324 int32_t IFWL_Edit::GetLimit() { 324 int32_t IFWL_Edit::GetLimit() const {
325 return m_nLimit; 325 return m_nLimit;
326 } 326 }
327 327
328 void IFWL_Edit::SetLimit(int32_t nLimit) { 328 void IFWL_Edit::SetLimit(int32_t nLimit) {
329 m_nLimit = nLimit; 329 m_nLimit = nLimit;
330 m_EdtEngine.SetLimit(nLimit); 330 m_EdtEngine.SetLimit(nLimit);
331 } 331 }
332 332
333 void IFWL_Edit::SetAliasChar(FX_WCHAR wAlias) { 333 void IFWL_Edit::SetAliasChar(FX_WCHAR wAlias) {
334 m_EdtEngine.SetAliasChar(wAlias); 334 m_EdtEngine.SetAliasChar(wAlias);
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 UpdateCaret(); 1720 UpdateCaret();
1721 1721
1722 CFX_RectF rect; 1722 CFX_RectF rect;
1723 GetWidgetRect(rect); 1723 GetWidgetRect(rect);
1724 CFX_RectF rtInvalidate; 1724 CFX_RectF rtInvalidate;
1725 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); 1725 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2);
1726 Repaint(&rtInvalidate); 1726 Repaint(&rtInvalidate);
1727 } 1727 }
1728 return true; 1728 return true;
1729 } 1729 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_edit.h ('k') | xfa/fwl/core/ifwl_listbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698