diff options
author | tbarzic <tbarzic@chromium.org> | 2015-01-21 16:43:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-22 00:44:34 +0000 |
commit | 44f4c2fef4f1c0e86977a161459f4b067abf6af6 (patch) | |
tree | eb26f562347eb59fe6fa988bec61c3b0ce5028cb /extensions/shell | |
parent | e53409112ade857d53896ee0891d25a0f692ae3c (diff) | |
download | chromium_src-44f4c2fef4f1c0e86977a161459f4b067abf6af6.zip chromium_src-44f4c2fef4f1c0e86977a161459f4b067abf6af6.tar.gz chromium_src-44f4c2fef4f1c0e86977a161459f4b067abf6af6.tar.bz2 |
Hook up chrome.printerProvider.onPrintRequested
This adds PrinterProviderAPI service which implements logic for dispatching
onPrintRequested event, and keeps track of pending event callbacks.
Adds PrinterProviderInternalAPI service and
PrinterProviderInternalAPIObserver. The internal API service keeps observer list,
which gets notified when printerProviderInternal API functions get called.
PrinterProviderAPI observes PrinterProviderInternalAPI service for when
print request result is reported, and runs the appropriate callback.
The callback is identified by the request_id param passed to the
internal API function (whose value is the one passed to chrome.printerProvider
event when it's dispatched).
BUG=408772
Review URL: https://codereview.chromium.org/853263002
Cr-Commit-Position: refs/heads/master@{#312506}
Diffstat (limited to 'extensions/shell')
-rw-r--r-- | extensions/shell/app_shell.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/shell/app_shell.gyp b/extensions/shell/app_shell.gyp index ed97b1b..f8ef6ef 100644 --- a/extensions/shell/app_shell.gyp +++ b/extensions/shell/app_shell.gyp @@ -315,6 +315,7 @@ '../browser/api/audio/audio_apitest.cc', '../browser/api/dns/dns_apitest.cc', '../browser/api/hid/hid_apitest.cc', + '../browser/api/printer_provider/printer_provider_apitest.cc', '../browser/api/socket/socket_apitest.cc', '../browser/api/sockets_tcp/sockets_tcp_apitest.cc', '../browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc', |