Add PDF extension support (issue #1565)

This commit is contained in:
Marshall Greenblatt
2015-07-16 17:40:01 -04:00
parent aefb5ccce8
commit b7a56d9343
108 changed files with 5513 additions and 427 deletions

View File

@@ -44,19 +44,20 @@
#define ID_TESTS_PRINT_TO_PDF 32716
#define ID_TESTS_LAST 32716
#define IDC_STATIC -1
#define IDS_BINDING 1000
#define IDS_DIALOGS 1001
#define IDS_LOCALSTORAGE 1002
#define IDS_LOGO 1003
#define IDS_LOGOBALL 1004
#define IDS_OSRTEST 1005
#define IDS_OTHER_TESTS 1006
#define IDS_PERFORMANCE 1007
#define IDS_PERFORMANCE2 1008
#define IDS_TRANSPARENCY 1009
#define IDS_URLREQUEST 1010
#define IDS_WINDOW 1011
#define IDS_XMLHTTPREQUEST 1012
#define IDS_BINDING_HTML 1000
#define IDS_DIALOGS_HTML 1001
#define IDS_LOCALSTORAGE_HTML 1002
#define IDS_LOGO_PNG 1003
#define IDS_OSRTEST_HTML 1004
#define IDS_OTHER_TESTS_HTML 1005
#define IDS_PDF_HTML 1006
#define IDS_PDF_PDF 1007
#define IDS_PERFORMANCE_HTML 1008
#define IDS_PERFORMANCE2_HTML 1009
#define IDS_TRANSPARENCY_HTML 1010
#define IDS_URLREQUEST_HTML 1011
#define IDS_WINDOW_HTML 1012
#define IDS_XMLHTTPREQUEST_HTML 1013
// Next default values for new objects
//

View File

@@ -37,18 +37,20 @@ int GetResourceId(const char* resource_name) {
char* name;
int id;
} resource_map[] = {
{"binding.html", IDS_BINDING},
{"dialogs.html", IDS_DIALOGS},
{"localstorage.html", IDS_LOCALSTORAGE},
{"logo.png", IDS_LOGO},
{"osr_test.html", IDS_OSRTEST},
{"other_tests.html", IDS_OTHER_TESTS},
{"performance.html", IDS_PERFORMANCE},
{"performance2.html", IDS_PERFORMANCE2},
{"transparency.html", IDS_TRANSPARENCY},
{"urlrequest.html", IDS_URLREQUEST},
{"window.html", IDS_WINDOW},
{"xmlhttprequest.html", IDS_XMLHTTPREQUEST},
{"binding.html", IDS_BINDING_HTML},
{"dialogs.html", IDS_DIALOGS_HTML},
{"localstorage.html", IDS_LOCALSTORAGE_HTML},
{"logo.png", IDS_LOGO_PNG},
{"osr_test.html", IDS_OSRTEST_HTML},
{"other_tests.html", IDS_OTHER_TESTS_HTML},
{"pdf.html", IDS_PDF_HTML},
{"pdf.pdf", IDS_PDF_PDF},
{"performance.html", IDS_PERFORMANCE_HTML},
{"performance2.html", IDS_PERFORMANCE2_HTML},
{"transparency.html", IDS_TRANSPARENCY_HTML},
{"urlrequest.html", IDS_URLREQUEST_HTML},
{"window.html", IDS_WINDOW_HTML},
{"xmlhttprequest.html", IDS_XMLHTTPREQUEST_HTML},
};
for (int i = 0; i < sizeof(resource_map)/sizeof(_resource_map); ++i) {

View File

@@ -19,6 +19,8 @@
<li><a href="http://tests/performance2">JavaScript Performance (2) Tests</a></li>
<li><a href="http://tests/window">JavaScript Window Manipulation</a></li>
<li><a href="http://tests/localstorage">Local Storage</a></li>
<li><a href="http://tests/pdf.pdf">PDF Viewer direct</a></li>
<li><a href="http://tests/pdf">PDF Viewer iframe</a></li>
<li><a href="http://mrdoob.com/lab/javascript/requestanimationframe/">requestAnimationFrame</a></li>
<li><a href="client://tests/handler.html">Scheme Handler</a></li>
<li><a href="https://www.google.com/intl/en/chrome/demos/speech.html">Speech Input</a> - requires "enable-speech-input" flag</li>

View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>PDF Test</title>
</head>
<body bgcolor="white">
<iframe src="pdf.pdf" width="500" height="500"></iframe>
<iframe src="pdf.pdf" width="500" height="500"></iframe>
</body>
</html>

Binary file not shown.

View File

@@ -29,18 +29,20 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// Binary
//
IDS_BINDING BINARY "..\\binding.html"
IDS_DIALOGS BINARY "..\\dialogs.html"
IDS_LOCALSTORAGE BINARY "..\\localstorage.html"
IDS_LOGO BINARY "..\\logo.png"
IDS_OSRTEST BINARY "..\\osr_test.html"
IDS_OTHER_TESTS BINARY "..\\other_tests.html"
IDS_PERFORMANCE BINARY "..\\performance.html"
IDS_PERFORMANCE2 BINARY "..\\performance2.html"
IDS_TRANSPARENCY BINARY "..\\transparency.html"
IDS_URLREQUEST BINARY "..\\urlrequest.html"
IDS_WINDOW BINARY "..\\window.html"
IDS_XMLHTTPREQUEST BINARY "..\\xmlhttprequest.html"
IDS_BINDING_HTML BINARY "..\\binding.html"
IDS_DIALOGS_HTML BINARY "..\\dialogs.html"
IDS_LOCALSTORAGE_HTML BINARY "..\\localstorage.html"
IDS_LOGO_PNG BINARY "..\\logo.png"
IDS_OSRTEST_HTML BINARY "..\\osr_test.html"
IDS_OTHER_TESTS_HTML BINARY "..\\other_tests.html"
IDS_PDF_HTML BINARY "..\\pdf.html"
IDS_PDF_PDF BINARY "..\\pdf.pdf"
IDS_PERFORMANCE_HTML BINARY "..\\performance.html"
IDS_PERFORMANCE2_HTML BINARY "..\\performance2.html"
IDS_TRANSPARENCY_HTML BINARY "..\\transparency.html"
IDS_URLREQUEST_HTML BINARY "..\\urlrequest.html"
IDS_WINDOW_HTML BINARY "..\\window.html"
IDS_XMLHTTPREQUEST_HTML BINARY "..\\xmlhttprequest.html"
/////////////////////////////////////////////////////////////////////////////
//