~ubuntu-branches/ubuntu/quantal/gnome-documents/quantal

« back to all changes in this revision

Viewing changes to src/windowMode.js

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-06-29 13:16:35 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120629131635-tkocc51xk4c37a39
Tags: 0.5.3-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump minimum GTK
  - Build-depend on libzapojit-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 */
21
21
 
 
22
const Lang = imports.lang;
22
23
const Signals = imports.signals;
23
24
 
24
25
const WindowMode = {
27
28
    PREVIEW: 2
28
29
};
29
30
 
30
 
function ModeController() {
31
 
    this._init();
32
 
};
 
31
const ModeController = new Lang.Class({
 
32
    Name: 'ModeController',
33
33
 
34
 
ModeController.prototype = {
35
34
    _init: function() {
36
35
        this._mode = WindowMode.NONE;
37
36
        this._fullscreen = false;
89
88
    getCanFullscreen: function() {
90
89
        return this._canFullscreen;
91
90
    }
92
 
};
 
91
});
93
92
Signals.addSignalMethods(ModeController.prototype);