summaryrefslogtreecommitdiff
path: root/fxjs/cjs_eventhandler.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-20 19:58:13 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-20 19:58:13 +0000
commitfae5e26d983848089e35e2b53e9da24036661b08 (patch)
treeeb5901d51975f27a82891cf135d127d2b7c2e8d3 /fxjs/cjs_eventhandler.h
parent9d0d7c8f35b8f3063d33a41186ea677d01748e45 (diff)
downloadpdfium-fae5e26d983848089e35e2b53e9da24036661b08.tar.xz
Make some CJS_EventHandler methods const.
Change-Id: Ie95b6a4c2613b5e110d2dd1244dd4a87375f624f Reviewed-on: https://pdfium-review.googlesource.com/18750 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_eventhandler.h')
-rw-r--r--fxjs/cjs_eventhandler.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/fxjs/cjs_eventhandler.h b/fxjs/cjs_eventhandler.h
index cb7b3c09b1..87ce1dcca0 100644
--- a/fxjs/cjs_eventhandler.h
+++ b/fxjs/cjs_eventhandler.h
@@ -142,27 +142,29 @@ class CJS_EventHandler {
void Initial(JS_EVENT_T type);
void Destroy();
- bool IsValid();
+ bool IsValid() const;
WideString& Change();
- WideString ChangeEx();
- int CommitKey();
- bool FieldFull();
- bool KeyDown();
- bool Modifier();
- const wchar_t* Name();
- const wchar_t* Type();
+ const WideString& ChangeEx();
+ int CommitKey() const;
+ bool FieldFull() const;
+ bool KeyDown() const;
+ bool Modifier() const;
+ const wchar_t* Name() const;
+ const wchar_t* Type() const;
bool& Rc();
- int& SelEnd();
- int& SelStart();
- bool Shift();
+ int SelEnd() const;
+ int SelStart() const;
+ void SetSelEnd(int value);
+ void SetSelStart(int value);
+ bool Shift() const;
Field* Source();
Field* Target_Field();
WideString& Value();
- bool WillCommit();
- WideString TargetName();
+ bool WillCommit() const;
+ const WideString& TargetName() const;
- JS_EVENT_T EventType() { return m_eEventType; }
+ JS_EVENT_T EventType() const { return m_eEventType; }
UnownedPtr<CJS_EventContext> const m_pJSEventContext;
JS_EVENT_T m_eEventType;