~ubuntu-branches/ubuntu/precise/gnome-shell/precise

« back to all changes in this revision

Viewing changes to js/ui/scripting.js

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-14 13:47:20 UTC
  • mfrom: (1.1.36) (18.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120314134720-202sbjbu4a3z1fru
Tags: 3.3.90-0ubuntu1
* Sync with Debian experimental svn packaging (LP: #941755, #937709).
  Remaining changes:
  - debian/gnome-shell.gsettings-override: Update for Ubuntu defaults
  - debian/control.in: Recommend cups-pk-helper
  - debian/patches/10-make-NetworkManager-optional.patch: Disabled
  - Don't run dh-autoreconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
2
2
 
3
 
const DBus = imports.dbus;
4
3
const Gio = imports.gi.Gio;
5
4
const Mainloop = imports.mainloop;
6
5
const Meta = imports.gi.Meta;
70
69
    };
71
70
}
72
71
 
73
 
const PerfHelperIface = {
74
 
    name: 'org.gnome.Shell.PerfHelper',
75
 
    methods: [{ name: 'CreateWindow', inSignature: 'iibb', outSignature: '' },
76
 
              { name: 'WaitWindows', inSignature: '', outSignature: '' },
77
 
              { name: 'DestroyWindows', inSignature: '', outSignature: ''}]
78
 
};
79
 
 
80
 
const PerfHelper = function () {
81
 
    this._init();
82
 
};
83
 
 
84
 
PerfHelper.prototype = {
85
 
     _init: function() {
86
 
         DBus.session.proxifyObject(this, 'org.gnome.Shell.PerfHelper', '/org/gnome/Shell/PerfHelper');
87
 
     }
88
 
};
89
 
 
90
 
DBus.proxifyPrototype(PerfHelper.prototype, PerfHelperIface);
 
72
const PerfHelperIface = <interface name="org.gnome.Shell.PerfHelper">
 
73
<method name="CreateWindow">
 
74
    <arg type="i" direction="in" />
 
75
    <arg type="i" direction="in" />
 
76
    <arg type="b" direction="in" />
 
77
    <arg type="b" direction="in" />
 
78
</method>
 
79
<method name="WaitWindows" />
 
80
<method name="DestroyWindows" />
 
81
</interface>;
 
82
 
 
83
var PerfHelperProxy = Gio.DBusProxy.makeProxyWrapper(PerfHelperIface);
 
84
function PerfHelper() {
 
85
    return new PerfHelperProxy(Gio.DBus.session, 'org.gnome.Shell.PerfHelper', '/org/gnome/Shell/PerfHelper');
 
86
}
91
87
 
92
88
let _perfHelper = null;
93
89
function _getPerfHelper() {