var validator_ = xwalk.utils.validator;
var type_ = xwalk.utils.type;
var types_ = validator_.Types;
+var utils_ = xwalk.utils;
var native_ = new xwalk.utils.NativeManager(extension);
function PPMManager() {}
}
PPMManager.prototype.checkPermission = function() {
+ utils_.deprecationWarn(
+ 'checkPermission() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '7.5'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'privilege', type: types_.STRING }
]);
return native_.getResultObject(result);
};
-PPMManager.prototype.checkPermissions = function() {
+PPMManager.prototype.checkPermissions = function () {
+ utils_.deprecationWarn(
+ 'checkPermissions() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '7.5'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'privileges', type: types_.ARRAY, values: types_.STRING }
]);
return data;
};
-PPMManager.prototype.requestPermission = function() {
+PPMManager.prototype.requestPermission = function () {
+ utils_.deprecationWarn(
+ 'requestPermission() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '7.5'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'privilege', type: types_.STRING },
{ name: 'successCallback', type: types_.FUNCTION },
}
};
-PPMManager.prototype.requestPermissions = function() {
+PPMManager.prototype.requestPermissions = function () {
+ utils_.deprecationWarn(
+ 'requestPermissions() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '7.5'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'privileges', type: types_.ARRAY, values: types_.STRING },
{ name: 'successCallback', type: types_.FUNCTION },
void PPMInstance::PPMManagerCheckPermission(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ DEPRECATION_WARN(
+ "checkPermission() is deprecated and will be removed from next release without any alternatives.",
+ "7.5");
const std::string& privilege = args.get("privilege").get<std::string>();
LoggerD("Checking privilege: %s ", privilege.c_str());
void PPMInstance::PPMManagerCheckPermissions(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ DEPRECATION_WARN(
+ "checkPermissions() is deprecated and will be removed from next release without any alternatives.",
+ "7.5");
const picojson::array& privileges = args.get("privileges").get<picojson::array>();
std::vector<const char*> privilege_array;
void PPMInstance::PPMManagerRequestPermission(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ DEPRECATION_WARN(
+ "requestPermission() is deprecated and will be removed from next release without any alternatives.",
+ "7.5");
const double callback_id = args.get("callbackId").get<double>();
void PPMInstance::PPMManagerRequestPermissions(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ DEPRECATION_WARN(
+ "requestPermissions() is deprecated and will be removed from next release without any alternatives.",
+ "7.5");
const double callback_id = args.get("callbackId").get<double>();
const picojson::array& privileges = args.get("privileges").get<picojson::array>();