diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-06 11:47:26 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-06 19:18:23 +0000 |
commit | 07dbf43d0c4655b76b44b9adbed2ab401b5bb08e (patch) | |
tree | f6468d6d3d41a1b320ddf78aa930b437d52ea8e5 /fpdfsdk/pdfwindow/cpwl_combo_box.h | |
parent | fecd7506f715e7d6908445d4913015ce81c9b23d (diff) | |
download | pdfium-07dbf43d0c4655b76b44b9adbed2ab401b5bb08e.tar.xz |
Remove in-out param from OnKeyDownWithExit
This CL splits OnKeyDownWithExit into IsMovementKey and
OnMovementKeyDown and removes the in-out param in favour of returning a
bool.
Change-Id: If8a83acec2d424ebd338d93445f366428940fbca
Reviewed-on: https://pdfium-review.googlesource.com/7334
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_combo_box.h')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_combo_box.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_combo_box.h b/fpdfsdk/pdfwindow/cpwl_combo_box.h index 25f0886fe4..e60e781656 100644 --- a/fpdfsdk/pdfwindow/cpwl_combo_box.h +++ b/fpdfsdk/pdfwindow/cpwl_combo_box.h @@ -22,7 +22,8 @@ class CPWL_CBListBox : public CPWL_ListBox { // CPWL_ListBox bool OnLButtonUp(const CFX_PointF& point, uint32_t nFlag) override; - bool OnKeyDownWithExit(uint16_t nChar, bool& bExit, uint32_t nFlag); + bool IsMovementKey(uint16_t nChar) const; + bool OnMovementKeyDown(uint16_t nChar, uint32_t nFlag); bool OnCharWithExit(uint16_t nChar, bool& bExit, uint32_t nFlag); }; |