[Notification] Make notification IDs assigned by native side
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 23 Sep 2013 18:37:38 +0000 (15:37 -0300)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 26 Sep 2013 12:36:01 +0000 (09:36 -0300)
commit0993fed554161e468b9e038adbdec0d02e8c9e63
tree142a7069de8d1e618815e18179fcecb2a0f5b354
parent533a8e550137f7a9a56f727cb7a239d8ce202d78
[Notification] Make notification IDs assigned by native side

We share the same id-space for notifications in Mobile, so makes more
sense reuse the assigned IDs from the native notification library. This
reduces the mapping work we have to do.

To achieve this we had to change the 'NotificationPost' message to be
synchronous, enabling us to throw errors correctly when there was a
failure posting the notification.
notification/mobile/notification_manager.cc
notification/mobile/notification_manager.h
notification/notification.gyp
notification/notification_api.js
notification/notification_instance_desktop.cc
notification/notification_instance_desktop.h
notification/notification_instance_mobile.cc
notification/notification_instance_mobile.h
notification/picojson_helpers.h [new file with mode: 0644]