blob: 91d02a62f353c6745a93da3d6a651814c411a64c [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Custom binding for the systemIndicator API.
// TODO(dewittj) Refactor custom binding to reduce redundancy between the
// extension action APIs.
var binding = require('binding').Binding.create('systemIndicator');
var setIcon = require('setIcon').setIcon;
binding.registerCustomHook(function(bindingsAPI) {
var apiFunctions = bindingsAPI.apiFunctions;
apiFunctions.setHandleRequest('setIcon', function(details, callback) {
setIcon(details, callback, this.name, this.definition.parameters,
'system indicator');
});
});
exports.binding = binding.generate();