This confuses the gobject-introspection scanner, silently making SHELL_KEYBINDING_MODE_NONE into -1. https://bugzilla.gnome.org/show_bug.cgi?id=693940
Having the definition in C instead of Javascript allows sharing the corresponding header with gnome-settings-daemon. https://bugzilla.gnome.org/show_bug.cgi?id=643111