Browse Source

...

sisyphus
Dustin Falgout 9 years ago
parent
commit
448aec6d72
  1. 11
      themes/_vendor/js/mock.js

11
themes/_vendor/js/mock.js vendored

@ -40,6 +40,10 @@ String.prototype.capitalize = function() {
/** /**
* @namespace window * @namespace window
*/ */
/**
* @memberOf window
*/
var lightdm = null, var lightdm = null,
greeter_util = null, greeter_util = null,
config = null; config = null;
@ -52,6 +56,7 @@ var lightdm = null,
/** /**
* Interface for object that holds info about a session. Session objects are not * Interface for object that holds info about a session. Session objects are not
* created by the theme's code, but rather by the {@link LightDMGreeter} class. * created by the theme's code, but rather by the {@link LightDMGreeter} class.
* @memberOf LightDM
*/ */
class LightDMSession { class LightDMSession {
constructor( { comment, key, name } ) { constructor( { comment, key, name } ) {
@ -82,6 +87,7 @@ class LightDMSession {
/** /**
* Interface for object that holds info about a language on this system. Language objects are not * Interface for object that holds info about a language on this system. Language objects are not
* created by the theme's code, but rather by the {@link LightDMGreeter} class. * created by the theme's code, but rather by the {@link LightDMGreeter} class.
* @memberOf LightDM
*/ */
class LightDMLanguage { class LightDMLanguage {
constructor( { code, name, territory } ) { constructor( { code, name, territory } ) {
@ -112,6 +118,7 @@ class LightDMLanguage {
/** /**
* Interface for object that holds info about a keyboard layout on this system. Language * Interface for object that holds info about a keyboard layout on this system. Language
* objects are not created by the theme's code, but rather by the {@link LightDMGreeter} class. * objects are not created by the theme's code, but rather by the {@link LightDMGreeter} class.
* @memberOf LightDM
*/ */
class LightDMLayout { class LightDMLayout {
constructor( { description, name, short_description } ) { constructor( { description, name, short_description } ) {
@ -142,6 +149,7 @@ class LightDMLayout {
/** /**
* Interface for object that holds info about a user account on this system. User * Interface for object that holds info about a user account on this system. User
* objects are not created by the theme's code, but rather by the {@link LightDMGreeter} class. * objects are not created by the theme's code, but rather by the {@link LightDMGreeter} class.
* @memberOf LightDM
*/ */
class LightDMUser { class LightDMUser {
constructor( user_info ) { constructor( user_info ) {
@ -224,6 +232,7 @@ class LightDMUser {
* Provides various utility methods for use by theme authors. The greeter will automatically * Provides various utility methods for use by theme authors. The greeter will automatically
* create an instance of this class when it starts. The instance can be accessed * create an instance of this class when it starts. The instance can be accessed
* with the global variable: `greeter_util`. * with the global variable: `greeter_util`.
* @memberOf LightDM
*/ */
class GreeterUtil { class GreeterUtil {
@ -270,6 +279,7 @@ class GreeterUtil {
* file located at `/etc/lightdm/lightdm-webkit2-greeter.conf`. The greeter will * file located at `/etc/lightdm/lightdm-webkit2-greeter.conf`. The greeter will
* create an instance of this class when it starts. The instance can be accessed * create an instance of this class when it starts. The instance can be accessed
* with the global variable: `config`. * with the global variable: `config`.
* @memberOf LightDM
*/ */
class ConfigFile { class ConfigFile {
@ -330,6 +340,7 @@ let MockObjects = {
* interact directly with this class to facilitate the user log in processes. * interact directly with this class to facilitate the user log in processes.
* The greeter will automatically create an instance of this class when it starts. * The greeter will automatically create an instance of this class when it starts.
* The instance can be accessed with the global variable: `lightdm`. * The instance can be accessed with the global variable: `lightdm`.
* @memberOf LightDM
*/ */
class LightDMGreeter { class LightDMGreeter {

Loading…
Cancel
Save