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

Side by Side Diff: xfa/src/fxfa/src/app/xfa_ffwidgethandler.cpp

Issue 1701883004: Banish CFX_ByteStringArray and CFX_WideStringArray to the XFA side. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 4 years, 10 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 | « xfa/src/fxfa/src/app/xfa_ffwidgethandler.h ('k') | no next file » | 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/src/foxitlib.h" 7 #include "xfa/src/foxitlib.h"
8 #include "xfa/src/fxfa/src/common/xfa_common.h" 8 #include "xfa/src/fxfa/src/common/xfa_common.h"
9 #include "xfa_fwladapter.h" 9 #include "xfa_fwladapter.h"
10 #include "xfa_ffwidgethandler.h" 10 #include "xfa_ffwidgethandler.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 } 613 }
614 FX_BOOL CXFA_FFMenuHandler::CanRedo(IXFA_Widget* hWidget) { 614 FX_BOOL CXFA_FFMenuHandler::CanRedo(IXFA_Widget* hWidget) {
615 return static_cast<CXFA_FFWidget*>(hWidget)->CanRedo(); 615 return static_cast<CXFA_FFWidget*>(hWidget)->CanRedo();
616 } 616 }
617 FX_BOOL CXFA_FFMenuHandler::Undo(IXFA_Widget* hWidget) { 617 FX_BOOL CXFA_FFMenuHandler::Undo(IXFA_Widget* hWidget) {
618 return static_cast<CXFA_FFWidget*>(hWidget)->Undo(); 618 return static_cast<CXFA_FFWidget*>(hWidget)->Undo();
619 } 619 }
620 FX_BOOL CXFA_FFMenuHandler::Redo(IXFA_Widget* hWidget) { 620 FX_BOOL CXFA_FFMenuHandler::Redo(IXFA_Widget* hWidget) {
621 return static_cast<CXFA_FFWidget*>(hWidget)->Redo(); 621 return static_cast<CXFA_FFWidget*>(hWidget)->Redo();
622 } 622 }
623 #define FX_EDIT_ISLATINWORD(u) \ 623 FX_BOOL CXFA_FFMenuHandler::GetSuggestWords(
624 (u == 0x2D || (u <= 0x005A && u >= 0x0041) || \ 624 IXFA_Widget* hWidget,
625 (u <= 0x007A && u >= 0x0061) || (u <= 0x02AF && u >= 0x00C0) || \ 625 CFX_PointF pointf,
626 u == 0x0027) 626 std::vector<CFX_ByteString>& sSuggest) {
627 FX_BOOL CXFA_FFMenuHandler::GetSuggestWords(IXFA_Widget* hWidget,
628 CFX_PointF pointf,
629 CFX_ByteStringArray& sSuggest) {
630 return static_cast<CXFA_FFWidget*>(hWidget) 627 return static_cast<CXFA_FFWidget*>(hWidget)
631 ->GetSuggestWords(pointf, sSuggest); 628 ->GetSuggestWords(pointf, sSuggest);
632 } 629 }
633 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( 630 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord(
634 IXFA_Widget* hWidget, 631 IXFA_Widget* hWidget,
635 CFX_PointF pointf, 632 CFX_PointF pointf,
636 const CFX_ByteStringC& bsReplace) { 633 const CFX_ByteStringC& bsReplace) {
637 return static_cast<CXFA_FFWidget*>(hWidget) 634 return static_cast<CXFA_FFWidget*>(hWidget)
638 ->ReplaceSpellCheckWord(pointf, bsReplace); 635 ->ReplaceSpellCheckWord(pointf, bsReplace);
639 } 636 }
OLDNEW
« no previous file with comments | « xfa/src/fxfa/src/app/xfa_ffwidgethandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698