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 #include "../../include/javascript/JavaScript.h" | 7 #include "../../include/javascript/JavaScript.h" |
8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
9 #include "../../include/javascript/JS_EventHandler.h" | 9 #include "../../include/javascript/JS_EventHandler.h" |
10 //#include "../../include/javascript/JS_ResMgr.h" | 10 //#include "../../include/javascript/JS_ResMgr.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 FX_BOOL CJS_EventHandler::KeyDown() | 454 FX_BOOL CJS_EventHandler::KeyDown() |
455 { | 455 { |
456 return m_bKeyDown; | 456 return m_bKeyDown; |
457 } | 457 } |
458 | 458 |
459 FX_BOOL CJS_EventHandler::Modifier() | 459 FX_BOOL CJS_EventHandler::Modifier() |
460 { | 460 { |
461 return m_bModifier; | 461 return m_bModifier; |
462 } | 462 } |
463 | 463 |
464 FX_LPCWSTR CJS_EventHandler::Name() | 464 const FX_WCHAR* CJS_EventHandler::Name() |
465 { | 465 { |
466 switch (m_eEventType) | 466 switch (m_eEventType) |
467 { | 467 { |
468 case JET_APP_INIT: return L"Init"; | 468 case JET_APP_INIT: return L"Init"; |
469 case JET_BATCH_EXEC: return L"Exec"; | 469 case JET_BATCH_EXEC: return L"Exec"; |
470 case JET_BOOKMARK_MOUSEUP: return L"Mouse Up"; | 470 case JET_BOOKMARK_MOUSEUP: return L"Mouse Up"; |
471 case JET_CONSOLE_EXEC: return L"Exec"; | 471 case JET_CONSOLE_EXEC: return L"Exec"; |
472 case JET_DOC_DIDPRINT: return L"DidPrint"; | 472 case JET_DOC_DIDPRINT: return L"DidPrint"; |
473 case JET_DOC_DIDSAVE: return L"DidSave"; | 473 case JET_DOC_DIDSAVE: return L"DidSave"; |
474 case JET_DOC_OPEN: return L"Open"; | 474 case JET_DOC_OPEN: return L"Open"; |
(...skipping 27 matching lines...) Expand all Loading... |
502 case JET_PAGE_INVIEW: return L"InView"; | 502 case JET_PAGE_INVIEW: return L"InView"; |
503 case JET_PAGE_OUTVIEW: | 503 case JET_PAGE_OUTVIEW: |
504 case JET_SCREEN_OUTVIEW: return L"OutView"; | 504 case JET_SCREEN_OUTVIEW: return L"OutView"; |
505 default: | 505 default: |
506 return L""; | 506 return L""; |
507 } | 507 } |
508 | 508 |
509 return L""; | 509 return L""; |
510 } | 510 } |
511 | 511 |
512 FX_LPCWSTR CJS_EventHandler::Type() | 512 const FX_WCHAR* CJS_EventHandler::Type() |
513 { | 513 { |
514 switch (m_eEventType) | 514 switch (m_eEventType) |
515 { | 515 { |
516 case JET_APP_INIT: return L"App"; | 516 case JET_APP_INIT: return L"App"; |
517 case JET_BATCH_EXEC: return L"Batch"; | 517 case JET_BATCH_EXEC: return L"Batch"; |
518 case JET_BOOKMARK_MOUSEUP: return L"BookMark"; | 518 case JET_BOOKMARK_MOUSEUP: return L"BookMark"; |
519 case JET_CONSOLE_EXEC: return L"Console"; | 519 case JET_CONSOLE_EXEC: return L"Console"; |
520 case JET_DOC_DIDPRINT: | 520 case JET_DOC_DIDPRINT: |
521 case JET_DOC_DIDSAVE: | 521 case JET_DOC_DIDSAVE: |
522 case JET_DOC_OPEN: | 522 case JET_DOC_OPEN: |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 { | 667 { |
668 return m_bWillCommit; | 668 return m_bWillCommit; |
669 } | 669 } |
670 | 670 |
671 CFX_WideString CJS_EventHandler::TargetName() | 671 CFX_WideString CJS_EventHandler::TargetName() |
672 { | 672 { |
673 return m_strTargetName; | 673 return m_strTargetName; |
674 } | 674 } |
675 | 675 |
676 | 676 |
OLD | NEW |