summaryrefslogtreecommitdiffstats
path: root/extensions/extensions.gyp
diff options
context:
space:
mode:
authortbarzic <tbarzic@chromium.org>2015-01-21 16:43:33 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-22 00:44:34 +0000
commit44f4c2fef4f1c0e86977a161459f4b067abf6af6 (patch)
treeeb26f562347eb59fe6fa988bec61c3b0ce5028cb /extensions/extensions.gyp
parente53409112ade857d53896ee0891d25a0f692ae3c (diff)
downloadchromium_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/extensions.gyp')
-rw-r--r--extensions/extensions.gyp3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/extensions.gyp b/extensions/extensions.gyp
index 38854c3..cac677e 100644
--- a/extensions/extensions.gyp
+++ b/extensions/extensions.gyp
@@ -462,8 +462,11 @@
'browser/api/power/power_api.h',
'browser/api/power/power_api_manager.cc',
'browser/api/power/power_api_manager.h',
+ 'browser/api/printer_provider/printer_provider_api.cc',
+ 'browser/api/printer_provider/printer_provider_api.h',
'browser/api/printer_provider_internal/printer_provider_internal_api.cc',
'browser/api/printer_provider_internal/printer_provider_internal_api.h',
+ 'browser/api/printer_provider_internal/printer_provider_internal_api_observer.h',
'browser/api/runtime/runtime_api.cc',
'browser/api/runtime/runtime_api.h',
'browser/api/runtime/runtime_api_delegate.cc',