Alexis Menard [Tue, 6 Aug 2013 18:37:18 +0000 (11:37 -0700)]
Merge pull request #56 from wang16/master
Fix target in tizen_mobile not found in common.gypi
Kenneth Rohde Christiansen [Tue, 6 Aug 2013 16:24:56 +0000 (09:24 -0700)]
Merge pull request #61 from jeez/bt-error
[Bluetooth] Improve error handling
Jesus Sanchez-Palencia [Tue, 6 Aug 2013 14:31:11 +0000 (11:31 -0300)]
[Bluetooth] Improve error handling
Kenneth Rohde Christiansen [Tue, 6 Aug 2013 11:46:31 +0000 (04:46 -0700)]
Merge pull request #58 from halton/master
[SystemInfo] Fix review comment on pull #57
Kenneth Rohde Christiansen [Tue, 6 Aug 2013 08:58:51 +0000 (01:58 -0700)]
Merge pull request #57 from halton/master
[SystemInfo][NETWORK] Use gio instead of raw D-Bus.
Kenneth Rohde Christiansen [Tue, 6 Aug 2013 08:14:42 +0000 (01:14 -0700)]
Merge pull request #55 from jeez/bt-error
[Bluetooth] Add error handling and exceptions to adapter.setName
Shiliu Wang [Tue, 6 Aug 2013 00:42:05 +0000 (08:42 +0800)]
Fix target in tizen_mobile not found in common.gypi
Halton Huo [Tue, 6 Aug 2013 02:56:40 +0000 (10:56 +0800)]
[SystemInfo] Fix review comment on pull #57
Changes summary:
1. s/TimedOutUpdate/OnUpdateTimeout
2. s/std::string("")/""
3. s/err = NULL/err = 0
4. s/(g_variant_n_children(value) == 0)/!g_variant_n_children(value)
5. misc on comments or log or typo
Jesus Sanchez-Palencia [Mon, 5 Aug 2013 22:30:30 +0000 (19:30 -0300)]
[Bluetooth] Add error handling and exceptions to adapter.setName
Halton Huo [Mon, 5 Aug 2013 04:55:04 +0000 (12:55 +0800)]
[SystemInfo][NETWORK] Use gio instead of raw D-Bus.
GIO has better interface than raw D-Bus and marshaller is not needed.
The issue that marshaller cause api expose failure is fixed.
Kenneth Rohde Christiansen [Mon, 5 Aug 2013 16:31:34 +0000 (09:31 -0700)]
Merge pull request #53 from jeez/timeout
[Bluetooth] Handle timeout in setVisible
Kenneth Rohde Christiansen [Mon, 5 Aug 2013 16:30:28 +0000 (09:30 -0700)]
Merge pull request #54 from jeez/review-fixes
[Bluetooth] After review fixes
Jesus Sanchez-Palencia [Mon, 5 Aug 2013 15:22:51 +0000 (12:22 -0300)]
[Bluetooth] Handle timeout in setVisible
Raphael Kubo da Costa [Mon, 5 Aug 2013 15:33:08 +0000 (18:33 +0300)]
Merge pull request #51 from halton/master
This should make it easier to understand and maintain the gyp files in the
project.
Jesus Sanchez-Palencia [Mon, 5 Aug 2013 14:40:33 +0000 (11:40 -0300)]
[Bluetooth] After review fixes
- Use '0' instead of 'NULL' for initializing variables;
- Use 'assert' instead of 'if' for null 'value' in HandleSetAdapterProperty.
Halton Huo [Fri, 2 Aug 2013 08:14:19 +0000 (16:14 +0800)]
Restructure GYP to easier read and use.
Changes summary:
1. Use dependencies instead of includes in tizen-wrt.gyp.
2. Move shared gyp from tizen-wrt.gyp into common/common.gypi to allow each
module include it.
3. pkg-config.gypi -> common/pkg-config.gypi
4. xwalk_js2c.gypi -> common/xwalk_js2c.gypi
5. <module>/*.gypi -> <module>/*.gyp
Halton Huo [Fri, 2 Aug 2013 06:48:27 +0000 (14:48 +0800)]
Substitute type to extension_host_os, build to extension_build_type
'type' is GYP target keyword, use 'extension_host_os' instead.
'extension_build_type' is more meaningful the word 'build'.
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 23:14:43 +0000 (16:14 -0700)]
Merge pull request #50 from jeez/bt-fix
[Bluetooth] Fix "maybe-uninitialized" warning
Jesus Sanchez-Palencia [Fri, 2 Aug 2013 21:39:35 +0000 (18:39 -0300)]
[Bluetooth] Fix "maybe-uninitialized" warning
Alexis Menard [Fri, 2 Aug 2013 21:30:08 +0000 (14:30 -0700)]
Merge pull request #49 from jeez/bt-gyp
[Bluetooth] GYP refactor
Jesus Sanchez-Palencia [Fri, 2 Aug 2013 21:18:50 +0000 (18:18 -0300)]
[Bluetooth] Refactor files and defines to resemble their backends (bluez4 vs bluez5)
BlueZ 4 will be the default backend for the time being, no matter if one is building for
desktop or mobile. It is easily switchable by passing '-D bluetooth=bluez5' (or 4).
Jesus Sanchez-Palencia [Fri, 2 Aug 2013 20:50:27 +0000 (17:50 -0300)]
Make it possible to pass -D parameters configure
After this commit --desktop will no longer be supported. One should
pass -D type=desktop instead. The default (if not passing any -D type)
will fallback to mobile.
Alexis Menard [Fri, 2 Aug 2013 20:16:46 +0000 (17:16 -0300)]
Use the right version in the spec file.
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 14:44:38 +0000 (07:44 -0700)]
Merge pull request #48 from tmpsantos/network_bearer
Added NetworkBerearSelection API stub
Thiago Marcos P. Santos [Mon, 29 Jul 2013 12:13:58 +0000 (15:13 +0300)]
Added NetworkBerearSelection API stub
The API doesn't do anything (yet) on mobile and desktop. Just return
the NotSupported error code to the callee.
Alexis Menard [Fri, 2 Aug 2013 14:20:43 +0000 (07:20 -0700)]
Merge pull request #47 from tmpsantos/packaging-fix
Fix libtizen.so not being installed by the RPM package (follow-up)
Thiago Marcos P. Santos [Fri, 2 Aug 2013 14:14:27 +0000 (17:14 +0300)]
Fix libtizen.so not being installed by the RPM package (follow-up)
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 14:00:41 +0000 (07:00 -0700)]
Merge pull request #46 from tmpsantos/packaging-fix
Fix libtizen.so not being installed by the RPM package
Thiago Marcos P. Santos [Fri, 2 Aug 2013 13:56:10 +0000 (16:56 +0300)]
Fix libtizen.so not being installed by the RPM package
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 13:36:33 +0000 (06:36 -0700)]
Merge pull request #44 from halton/master
Implement STORAGE listener
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 10:02:44 +0000 (03:02 -0700)]
Merge pull request #45 from tmpsantos/build-fix
Build fix
Thiago Marcos P. Santos [Fri, 2 Aug 2013 09:43:29 +0000 (12:43 +0300)]
Fix broken code on System Info API
Wrong include file, missing namespace declaration and a code
leftover (?).
Thiago Marcos P. Santos [Fri, 2 Aug 2013 09:41:22 +0000 (12:41 +0300)]
Added missing Tizen dependencies for System Info API
pkg-config is looking for these dependencies on the gyp buildsytem, but
we have to declare them as package dependency on the RPM spec file.
Thiago Marcos P. Santos [Fri, 2 Aug 2013 09:40:49 +0000 (12:40 +0300)]
Fix build system when building mobile
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 07:09:49 +0000 (00:09 -0700)]
Merge pull request #43 from halton/master
Move mobile common targets into common/tizen_mobile.gypi to allow modules reuses
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 06:56:17 +0000 (23:56 -0700)]
Merge pull request #41 from halton/master
Tizen SystemInfo API
Kenneth Rohde Christiansen [Fri, 2 Aug 2013 06:48:47 +0000 (23:48 -0700)]
Merge pull request #42 from halton/release_gyp
Fix Release gyp issue
Halton Huo [Fri, 2 Aug 2013 02:13:29 +0000 (10:13 +0800)]
Use system_info::default_timeout_interval
Add FIXME for those should use event or D-Bus instead of timeout.
legendlee1314 [Fri, 2 Aug 2013 07:16:13 +0000 (15:16 +0800)]
Implement STORAGE listener
Halton Huo [Thu, 1 Aug 2013 23:04:44 +0000 (07:04 +0800)]
Depend on vconf for mobile, leave NetworkManger for desktop
Halton Huo [Thu, 1 Aug 2013 22:56:00 +0000 (06:56 +0800)]
Move mobile common targets into common/tizen_mobile.gypi
Kenneth Rohde Christiansen [Thu, 1 Aug 2013 22:58:30 +0000 (15:58 -0700)]
Merge pull request #40 from cmarcelo/tizen-notification-review-fixes
Tizen notification review fixes
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 22:54:51 +0000 (19:54 -0300)]
notification: simplify return statement
Kenneth Rohde Christiansen [Thu, 1 Aug 2013 22:54:26 +0000 (15:54 -0700)]
Merge pull request #39 from jeez/bt4-setters
[Bluetooth] Implement setName, setPowered and setVisible
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 22:52:55 +0000 (19:52 -0300)]
notification: rename Locker to AutoLock
And we just need it on the cc file, so move it there.
Jesus Sanchez-Palencia [Thu, 1 Aug 2013 22:43:16 +0000 (19:43 -0300)]
[Bluetooth] Make all callback parameters be called 'result'
Jesus Sanchez-Palencia [Thu, 1 Aug 2013 22:10:37 +0000 (19:10 -0300)]
[Bluetooth] Implement setName, setPowered and setVisible for tizen.bluetooth's adapter
These APIs were only implemented for BlueZ4.
Kenneth Rohde Christiansen [Thu, 1 Aug 2013 22:20:04 +0000 (15:20 -0700)]
Merge pull request #38 from cmarcelo/tizen-notification
Tizen notification support
Halton Huo [Thu, 1 Aug 2013 22:19:05 +0000 (06:19 +0800)]
Fix Release gyp issue
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 21:53:25 +0000 (18:53 -0300)]
notification: fix comment about DetachClient() function
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 21:47:06 +0000 (18:47 -0300)]
notification: move NotificationManager class to its own file
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 21:42:30 +0000 (18:42 -0300)]
notification: make NotificationManager use string ids
Instead of exposing priv_id to the NotificationContext, let's use the
ids that it gets from JavaScript. All the mapping happens in the same
place and we keep only one datastructure.
This have the side effect of freeing us from a race condition when
running the client callback (runs on the main extension thread instead
of the context thread). This solution not always scale, in the long
run we probably want to expose some simplified version of MessageLoops.
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 21:27:37 +0000 (18:27 -0300)]
gyp: teach how to exclude sources according to subdirectory name
Sources with suffix _mobile.cc and _desktop.cc were automatically
excluded from the builds where they didn't apply. Do the same for the
mobile/ and desktop/ subdirectories. This is useful for creating new
header / source files that are platform specific.
Halton Huo [Thu, 1 Aug 2013 21:07:08 +0000 (05:07 +0800)]
Pass Google cppLint
Halton Huo [Wed, 31 Jul 2013 18:58:42 +0000 (02:58 +0800)]
Implement NETWORK listener
Use NetworkManager D-Bus interface instead.
Halton Huo [Wed, 31 Jul 2013 04:28:40 +0000 (12:28 +0800)]
Implement listener for reset properties - Part I
CELLULAR_NETWORK
DEVICE_ORIENTATION
NETWORK
PERIPHERAL
SIM
WIFI_NETWORK
Halton Huo [Wed, 31 Jul 2013 03:35:05 +0000 (11:35 +0800)]
Implement LOCALE listener
Halton Huo [Wed, 31 Jul 2013 03:20:21 +0000 (11:20 +0800)]
Implement BUILD listener
Halton Huo [Wed, 31 Jul 2013 02:57:45 +0000 (10:57 +0800)]
Implement STORAGE listener - Part I
Halton Huo [Wed, 31 Jul 2013 02:49:57 +0000 (10:49 +0800)]
Implement BATTERY listener
Halton Huo [Wed, 31 Jul 2013 02:38:29 +0000 (10:38 +0800)]
Implement DISPLAY listener
Halton Huo [Tue, 30 Jul 2013 22:27:31 +0000 (06:27 +0800)]
Implement CPU listener
fyraimar [Thu, 1 Aug 2013 06:34:58 +0000 (14:34 +0800)]
Implement LOCALE
fyraimar [Thu, 1 Aug 2013 06:29:46 +0000 (14:29 +0800)]
Implement BUILD
Halton Huo [Tue, 30 Jul 2013 19:02:28 +0000 (03:02 +0800)]
Follow code style in system_info_utils.[cc|.h]
Halton Huo [Tue, 30 Jul 2013 17:50:24 +0000 (01:50 +0800)]
Use SetPicoJsonObjectValue for handy
Halton Huo [Tue, 30 Jul 2013 02:57:02 +0000 (10:57 +0800)]
Implement BATTERY
Halton Huo [Tue, 30 Jul 2013 02:54:14 +0000 (10:54 +0800)]
Implement STORAGE
Halton Huo [Fri, 26 Jul 2013 01:39:52 +0000 (09:39 +0800)]
Implement DISPLAY
Halton Huo [Thu, 25 Jul 2013 22:31:17 +0000 (06:31 +0800)]
Implement NETWORK
Halton Huo [Thu, 25 Jul 2013 20:56:02 +0000 (04:56 +0800)]
Seperate NETWORK for desktop and mobile
Halton Huo [Thu, 25 Jul 2013 07:44:36 +0000 (15:44 +0800)]
Report not support for desktop and leave dummy code for mobile
DEVICE_ORIENTATION
CELLULAR_NETWORK
SIM
PERIPHERAL
Halton Huo [Thu, 25 Jul 2013 03:55:58 +0000 (11:55 +0800)]
Implement CPU
Halton Huo [Tue, 23 Jul 2013 11:54:28 +0000 (19:54 +0800)]
Init for tizen.systeminfo, skeleton code
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 20:46:50 +0000 (17:46 -0300)]
notification: implement post / remove for Tizen Mobile
Use NotificationManager from previous commit to implement
tizen.notification.post() and tizen.notification.remove(). Only Title
and Content are being propagated to the underlying tizen.notification
library for now.
The NotificationManager public functions were changed to be
thread-safe since extension contexts run in their own threads, while
the callback for notification is called from the main extension
thread.
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 18:50:33 +0000 (15:50 -0300)]
notification: create basic functions to interact with Tizen library
The way notification library works, we need to provide a global
handler to get information about when notifications were removed.
NotificationManager takes role of this global handler and filters
this information to the appropriate Contexts.
Alexis Menard [Thu, 1 Aug 2013 13:22:09 +0000 (06:22 -0700)]
Merge pull request #37 from jeez/build-fix
[Bluetooth] Fix desktop build
Jesus Sanchez-Palencia [Thu, 1 Aug 2013 13:17:37 +0000 (10:17 -0300)]
[Bluetooth] Fix desktop build
Alexis Menard [Thu, 1 Aug 2013 11:44:04 +0000 (04:44 -0700)]
Merge pull request #35 from cmarcelo/build-system-fixes
Build system fixes
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 02:32:18 +0000 (23:32 -0300)]
configure: add short tip about individual targets
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 02:28:47 +0000 (23:28 -0300)]
power: fix gypi so we can compile in desktop mode
We can use conditional to choose dependencies, so that we don't need to
depend on vconf on desktop for example. Also move the gio dependency to
tizen_power target, since that's the only one built on desktop.
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 02:21:10 +0000 (23:21 -0300)]
configure: add --desktop option
Caio Marcelo de Oliveira Filho [Thu, 1 Aug 2013 02:12:33 +0000 (23:12 -0300)]
notification: add stub for mobile
So that we can remove the condition in tizen-wrt.gyp.
Caio Marcelo de Oliveira Filho [Wed, 31 Jul 2013 22:40:10 +0000 (19:40 -0300)]
notification: move desktop specific bits to its file
Create a static PlatformInitialize function to handle the extension
initialization.
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 17:36:03 +0000 (10:36 -0700)]
Merge pull request #33 from darktears/power-tizen
Make sure the Tizen Power API works on Tizen 2.1
Alexis Menard [Wed, 31 Jul 2013 16:07:39 +0000 (13:07 -0300)]
Make sure the Tizen Power API works on Tizen 2.1
Unfortunately some of the tests are not passing because the underlaying
C API does not function correctly on the device (e.g. querying the max
brightness, setting the brightness or the power state).
Exceptions are also not yet propataged from C++ to JS.
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 16:36:13 +0000 (09:36 -0700)]
Merge pull request #34 from darktears/fullscreen-runner
Force fullscreen when running on Tizen
Alexis Menard [Wed, 31 Jul 2013 16:19:21 +0000 (13:19 -0300)]
Force fullscreen when running on Tizen
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 15:54:53 +0000 (08:54 -0700)]
Merge pull request #29 from kenchris/set-get-brightness
Implement set/get brightness for Linux desktop
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 14:16:49 +0000 (07:16 -0700)]
Merge pull request #30 from jeez/bt4
Implement Tizen (BlueZ 4) bluetooth backend
Jesus Sanchez-Palencia [Wed, 31 Jul 2013 14:10:36 +0000 (11:10 -0300)]
[Bluetooth] Remove unneeded conversions and make code more 'C++ish'
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 12:59:33 +0000 (05:59 -0700)]
Merge pull request #32 from luxtella/samsung
Make the tizen example check exceptions that Samsung implementation defines.
Kenneth Rohde Christiansen [Wed, 31 Jul 2013 12:35:14 +0000 (05:35 -0700)]
Merge pull request #31 from luxtella/instanceof
Make js-test-pre.js use "instanceof" instead of checking properties to handle WebAPIException.
Dongseong Hwang [Wed, 31 Jul 2013 12:27:00 +0000 (15:27 +0300)]
Make the tizen example check exceptions that Samsung implementation defines.
Dongseong Hwang [Wed, 31 Jul 2013 12:23:58 +0000 (15:23 +0300)]
Make js-test-pre.js use "instanceof" instead of checking properties to handle WebAPIException.
Kenneth Rohde Christiansen [Tue, 30 Jul 2013 20:26:17 +0000 (22:26 +0200)]
Implement set/get brightness for Linux desktop
Jesus Sanchez-Palencia [Tue, 30 Jul 2013 20:30:26 +0000 (17:30 -0300)]
[Bluetooth] Use typedef DeviceMap
Jesus Sanchez-Palencia [Tue, 30 Jul 2013 20:23:17 +0000 (17:23 -0300)]
[Bluetooth] Make the manager-creation callback common.
In BlueZ 4 this is the Manager interface, while in BlueZ 5 this is the
DBus Object Manager.
Jesus Sanchez-Palencia [Tue, 30 Jul 2013 20:13:57 +0000 (17:13 -0300)]
[Bluetooth] Moving common code to bluetooth_context.cc
Jesus Sanchez-Palencia [Tue, 30 Jul 2013 19:53:08 +0000 (16:53 -0300)]
[Bluetooth] Add BlueZ4 backend.
This backend will be protected by #ifdef TIZEN_MOBILE (-D type=mobile) while
the BlueZ 5 backend will be guarded by #ifdef GENERIC_DESKTOP.