diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-05-15 17:46:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-15 17:46:15 +0000 |
commit | bcb81523776512ba45af6e479cafc421871a88a1 (patch) | |
tree | 768860b883525be672ac7b3c79016f94f10c5086 /samples/pdfium_test.cc | |
parent | 68c15ce8891f7b65234940d29849f8f0af91e3c6 (diff) | |
download | pdfium-bcb81523776512ba45af6e479cafc421871a88a1.tar.xz |
Test app.beep() in standalone PDFium.
Precursor to testing app.beep() in chrome's browser tests.
Change-Id: I09ef497bd6a8094e389783b144fa04c9230cbe3d
Reviewed-on: https://pdfium-review.googlesource.com/32550
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index c2c217ddae..347982cf09 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -193,6 +193,10 @@ int ExampleAppResponse(IPDF_JSPLATFORM*, return 4; } +void ExampleAppBeep(IPDF_JSPLATFORM*, int type) { + printf("BEEP!!! %d\n", type); +} + void ExampleDocGotoPage(IPDF_JSPLATFORM*, int page_number) { printf("Goto Page: %d\n", page_number); } @@ -682,6 +686,7 @@ void RenderPdf(const std::string& name, platform_callbacks.version = 3; platform_callbacks.app_alert = ExampleAppAlert; platform_callbacks.app_response = ExampleAppResponse; + platform_callbacks.app_beep = ExampleAppBeep; platform_callbacks.Doc_gotoPage = ExampleDocGotoPage; platform_callbacks.Doc_mail = ExampleDocMail; |