Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_INCLUDE_JAVASCRIPT_APP_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
| 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
| 9 | 9 |
| 10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 222 CFX_WideString& sError); | 222 CFX_WideString& sError); |
| 223 FX_BOOL setTimeOut(IFXJS_Context* cc, | 223 FX_BOOL setTimeOut(IFXJS_Context* cc, |
| 224 const CJS_Parameters& params, | 224 const CJS_Parameters& params, |
| 225 CJS_Value& vRet, | 225 CJS_Value& vRet, |
| 226 CFX_WideString& sError); | 226 CFX_WideString& sError); |
| 227 | 227 |
| 228 private: | 228 private: |
| 229 // FX_DWORD AppGetTickCount(); | 229 // FX_DWORD AppGetTickCount(); |
| 230 void TimerProc(CJS_Timer* pTimer); | 230 void TimerProc(CJS_Timer* pTimer); |
| 231 void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript); | 231 void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript); |
| 232 //» void» » » » » » ParsePopupMenuObj(APP_ME NUITEM * | 232 //» void |
|
Nico
2015/08/06 20:58:49
This looks like a clang-format misfunction. Why is
Lei Zhang
2015/08/06 21:12:04
Yes.
| |
| 233 //ppMenuItem,JSObject * pObj); | 233 // ParsePopupMenuObj(APP_MENUITEM |
| 234 //» void» » » » » » DeleteMenuItems(APP_MENU ITEM_ARRAY * | 234 //* |
| 235 //pMenuItems); | 235 // ppMenuItem,JSObject * pObj); |
| 236 // » void» » » » » » AddMenuItem(APP_MENUITEM _ARRAY * pMenuItems, HMENU | 236 //» void |
| 237 // DeleteMenuItems(APP_MENUITEM_ARRAY | |
| 238 //* | |
| 239 // pMenuItems); | |
| 240 // » void | |
| 241 // AddMenuItem(APP_MENUITEM_ARRAY | |
| 242 // * | |
| 243 // pMenuItems, | |
| 244 // HMENU | |
| 237 // hMenu, MENUITEMINFO MenuItemInfo); | 245 // hMenu, MENUITEMINFO MenuItemInfo); |
| 238 // » void» » » » » » InitMenuItemInfo(MENUITE MINFO& | 246 // » void |
| 247 // InitMenuItemInfo(MENUITEMINFO& | |
| 239 // MenuItemInfo); | 248 // MenuItemInfo); |
| 240 // void DestroyPopUpMenu(); | 249 // void DestroyPopUpMenu(); |
| 241 | 250 |
| 242 // » void» » » » » » ParserMenuItem(APP_MENU* pHead, const | 251 // » void» » » » » » ParserMenuItem(APP_MENU* |
| 252 // pHead, | |
| 253 // const | |
| 243 // CJS_Parameters¶ms); | 254 // CJS_Parameters¶ms); |
| 244 // » void» » » » » » AddItemToMenu(APP_MENU* pHead, HMENU hMenu, | 255 // » void» » » » » » AddItemToMenu(APP_MENU* |
| 256 // pHead, | |
| 257 // HMENU | |
| 258 // hMenu, | |
| 245 // MENUITEMINFO MenuItemInfo); | 259 // MENUITEMINFO MenuItemInfo); |
| 246 // » void» » » » » » DestroyMenuItems(APP_MEN U* | 260 // » void DestroyMenuItems(APP_MENU* |
| 247 // pHead); | 261 // pHead); |
| 248 | 262 |
| 249 public: | 263 public: |
| 250 static CFX_WideString SysPathToPDFPath(const CFX_WideString& sOldPath); | 264 static CFX_WideString SysPathToPDFPath(const CFX_WideString& sOldPath); |
| 251 | 265 |
| 252 private: | 266 private: |
| 253 bool m_bCalculate; | 267 bool m_bCalculate; |
| 254 bool m_bRuntimeHighLight; | 268 bool m_bRuntimeHighLight; |
| 255 | 269 |
| 256 CFX_ArrayTemplate<CJS_Timer*> m_aTimer; | 270 CFX_ArrayTemplate<CJS_Timer*> m_aTimer; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 JS_STATIC_METHOD(openDoc, app); | 311 JS_STATIC_METHOD(openDoc, app); |
| 298 JS_STATIC_METHOD(openFDF, app); | 312 JS_STATIC_METHOD(openFDF, app); |
| 299 JS_STATIC_METHOD(popUpMenuEx, app); | 313 JS_STATIC_METHOD(popUpMenuEx, app); |
| 300 JS_STATIC_METHOD(popUpMenu, app); | 314 JS_STATIC_METHOD(popUpMenu, app); |
| 301 JS_STATIC_METHOD(response, app); | 315 JS_STATIC_METHOD(response, app); |
| 302 JS_STATIC_METHOD(setInterval, app); | 316 JS_STATIC_METHOD(setInterval, app); |
| 303 JS_STATIC_METHOD(setTimeOut, app); | 317 JS_STATIC_METHOD(setTimeOut, app); |
| 304 }; | 318 }; |
| 305 | 319 |
| 306 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ | 320 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_ |
| OLD | NEW |