summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_edit.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-06 13:56:04 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-06 21:25:37 +0000
commitd97f2eee71036c09823dea18b2c5f74731317fe9 (patch)
tree9005cf83e67dad2a0e690772f2a345ba3f7e022d /fpdfsdk/pdfwindow/cpwl_edit.h
parent1f9d2338feb75d62bb28e116df7243dd567fded8 (diff)
downloadpdfium-d97f2eee71036c09823dea18b2c5f74731317fe9.tar.xz
Convert OnBeforeKeyStoke to remove in-out param
This CL removes the in-out params from OnBeforeKeyStroke and instead returns a std::pair<bool, bool>. Change-Id: I246cf51652da7e05ea71f582b523aa428cbbd3b8 Reviewed-on: https://pdfium-review.googlesource.com/7337 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_edit.h')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_edit.h b/fpdfsdk/pdfwindow/cpwl_edit.h
index 038aba955f..ebf556ad71 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit.h
+++ b/fpdfsdk/pdfwindow/cpwl_edit.h
@@ -7,6 +7,8 @@
#ifndef FPDFSDK_PDFWINDOW_CPWL_EDIT_H_
#define FPDFSDK_PDFWINDOW_CPWL_EDIT_H_
+#include <utility>
+
#include "core/fpdfdoc/cpvt_wordrange.h"
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_basic.h"
@@ -22,15 +24,14 @@ class IPWL_Filler_Notify {
float fPopupMax,
bool* bBottom,
float* fPopupRet) = 0;
- virtual void OnBeforeKeyStroke(void* pPrivateData,
- CFX_WideString& strChange,
- const CFX_WideString& strChangeEx,
- int nSelStart,
- int nSelEnd,
- bool bKeyDown,
- bool& bRC,
- bool& bExit,
- uint32_t nFlag) = 0;
+ virtual std::pair<bool, bool> OnBeforeKeyStroke(
+ void* pPrivateData,
+ CFX_WideString& strChange,
+ const CFX_WideString& strChangeEx,
+ int nSelStart,
+ int nSelEnd,
+ bool bKeyDown,
+ uint32_t nFlag) = 0;
#ifdef PDF_ENABLE_XFA
virtual bool OnPopupPreOpen(void* pPrivateData, uint32_t nFlag) = 0;
virtual bool OnPopupPostOpen(void* pPrivateData, uint32_t nFlag) = 0;