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

Side by Side Diff: fpdfsdk/javascript/cjs_context.h

Issue 2167343002: Remove EnableMessageBox() / IsMessageBoxEnabled() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 5 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 | « fpdfsdk/javascript/JS_Runtime_Stub.cpp ('k') | fpdfsdk/javascript/cjs_context.cpp » ('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 #ifndef FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void OnScreen_OutView(FX_BOOL bModifier, 112 void OnScreen_OutView(FX_BOOL bModifier,
113 FX_BOOL bShift, 113 FX_BOOL bShift,
114 CPDFSDK_Annot* pScreen) override; 114 CPDFSDK_Annot* pScreen) override;
115 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override; 115 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override;
116 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; 116 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override;
117 void OnMenu_Exec(CPDFSDK_Document* pTarget, 117 void OnMenu_Exec(CPDFSDK_Document* pTarget,
118 const CFX_WideString& strTargetName) override; 118 const CFX_WideString& strTargetName) override;
119 void OnBatchExec(CPDFSDK_Document* pTarget) override; 119 void OnBatchExec(CPDFSDK_Document* pTarget) override;
120 void OnConsole_Exec() override; 120 void OnConsole_Exec() override;
121 void OnExternal_Exec() override; 121 void OnExternal_Exec() override;
122 void EnableMessageBox(FX_BOOL bEnable) override;
123 122
124 FX_BOOL IsMsgBoxEnabled() const { return m_bMsgBoxEnable; }
125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } 123 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; }
126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler; } 124 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler; }
127 125
128 CPDFDoc_Environment* GetReaderApp(); 126 CPDFDoc_Environment* GetReaderApp();
129 CPDFSDK_Document* GetReaderDocument(); 127 CPDFSDK_Document* GetReaderDocument();
130 128
131 private: 129 private:
132 CJS_Runtime* m_pRuntime; 130 CJS_Runtime* m_pRuntime;
133 CJS_EventHandler* m_pEventHandler; 131 CJS_EventHandler* m_pEventHandler;
134 FX_BOOL m_bBusy; 132 FX_BOOL m_bBusy;
135 FX_BOOL m_bMsgBoxEnable;
136 }; 133 };
137 134
138 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 135 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/JS_Runtime_Stub.cpp ('k') | fpdfsdk/javascript/cjs_context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698