| Index: samples/pdfium_test.cc
|
| diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
|
| index 164364fbafa040eb3d6612d04475618cd69849c2..3ad0e62626db2390217b0c8e2cfa7a69c6698654 100644
|
| --- a/samples/pdfium_test.cc
|
| +++ b/samples/pdfium_test.cc
|
| @@ -195,10 +195,15 @@ void WriteEmf(FPDF_PAGE page, const char* pdf_name, int num) {
|
| }
|
| #endif
|
|
|
| -int ExampleAppAlert(IPDF_JSPLATFORM*, FPDF_WIDESTRING msg, FPDF_WIDESTRING,
|
| - int, int) {
|
| - std::wstring platform_string = GetPlatformWString(msg);
|
| - printf("Alert: %ls\n", platform_string.c_str());
|
| +int ExampleAppAlert(IPDF_JSPLATFORM*,
|
| + FPDF_WIDESTRING msg,
|
| + FPDF_WIDESTRING title,
|
| + int nType,
|
| + int nIcon) {
|
| + printf("%ls", GetPlatformWString(title).c_str());
|
| + if (nIcon || nType)
|
| + printf("[icon=%d,type=%d]", nIcon, nType);
|
| + printf(": %ls\n", GetPlatformWString(msg).c_str());
|
| return 0;
|
| }
|
|
|
|
|