UNPKG

windows.system

Version:

Use the Windows.System WinRT API directly from Node.js

251 lines (224 loc) 5.54 kB
Rect = (function () { var cls = function Rect() { }; return cls; }) (); exports.Rect = Rect; Point = (function () { var cls = function Point() { }; return cls; }) (); exports.Point = Point; _ProcessorArchitecture = function () { this.x86 = 0; this.arm = 1; this.x64 = 2; this.neutral = 3; this.unknown = 4; } exports.ProcessorArchitecture = new _ProcessorArchitecture(); _VirtualKeyModifiers = function () { this.none = 0; this.control = 1; this.menu = 2; this.shift = 3; this.windows = 4; } exports.VirtualKeyModifiers = new _VirtualKeyModifiers(); _VirtualKey = function () { this.none = 0; this.leftButton = 1; this.rightButton = 2; this.cancel = 3; this.middleButton = 4; this.xButton1 = 5; this.xButton2 = 6; this.back = 7; this.tab = 8; this.clear = 9; this.enter = 10; this.shift = 11; this.control = 12; this.menu = 13; this.pause = 14; this.capitalLock = 15; this.kana = 16; this.hangul = 17; this.junja = 18; this.final = 19; this.hanja = 20; this.kanji = 21; this.escape = 22; this.convert = 23; this.nonConvert = 24; this.accept = 25; this.modeChange = 26; this.space = 27; this.pageUp = 28; this.pageDown = 29; this.end = 30; this.home = 31; this.left = 32; this.up = 33; this.right = 34; this.down = 35; this.select = 36; this.print = 37; this.execute = 38; this.snapshot = 39; this.insert = 40; this.delete = 41; this.help = 42; this.number0 = 43; this.number1 = 44; this.number2 = 45; this.number3 = 46; this.number4 = 47; this.number5 = 48; this.number6 = 49; this.number7 = 50; this.number8 = 51; this.number9 = 52; this.a = 53; this.b = 54; this.c = 55; this.d = 56; this.e = 57; this.f = 58; this.g = 59; this.h = 60; this.i = 61; this.j = 62; this.k = 63; this.l = 64; this.m = 65; this.n = 66; this.o = 67; this.p = 68; this.q = 69; this.r = 70; this.s = 71; this.t = 72; this.u = 73; this.v = 74; this.w = 75; this.x = 76; this.y = 77; this.z = 78; this.leftWindows = 79; this.rightWindows = 80; this.application = 81; this.sleep = 82; this.numberPad0 = 83; this.numberPad1 = 84; this.numberPad2 = 85; this.numberPad3 = 86; this.numberPad4 = 87; this.numberPad5 = 88; this.numberPad6 = 89; this.numberPad7 = 90; this.numberPad8 = 91; this.numberPad9 = 92; this.multiply = 93; this.add = 94; this.separator = 95; this.subtract = 96; this.decimal = 97; this.divide = 98; this.f1 = 99; this.f2 = 100; this.f3 = 101; this.f4 = 102; this.f5 = 103; this.f6 = 104; this.f7 = 105; this.f8 = 106; this.f9 = 107; this.f10 = 108; this.f11 = 109; this.f12 = 110; this.f13 = 111; this.f14 = 112; this.f15 = 113; this.f16 = 114; this.f17 = 115; this.f18 = 116; this.f19 = 117; this.f20 = 118; this.f21 = 119; this.f22 = 120; this.f23 = 121; this.f24 = 122; this.numberKeyLock = 123; this.scroll = 124; this.leftShift = 125; this.rightShift = 126; this.leftControl = 127; this.rightControl = 128; this.leftMenu = 129; this.rightMenu = 130; this.goBack = 131; this.goForward = 132; this.refresh = 133; this.stop = 134; this.search = 135; this.favorites = 136; this.goHome = 137; } exports.VirtualKey = new _VirtualKey(); LauncherUIOptions = (function () { var cls = function LauncherUIOptions() { this.selectionRect = new Object(); this.preferredPlacement = new Number(); this.invocationPoint = new Object(); }; return cls; }) (); exports.LauncherUIOptions = LauncherUIOptions; LauncherOptions = (function () { var cls = function LauncherOptions() { this.treatAsUntrusted = new Boolean(); this.preferredApplicationPackageFamilyName = new String(); this.preferredApplicationDisplayName = new String(); this.fallbackUri = new Object(); this.displayApplicationPicker = new Boolean(); this.contentType = new String(); this.uI = new LauncherUIOptions(); this.desiredRemainingView = new Number(); }; return cls; }) (); exports.LauncherOptions = LauncherOptions; Launcher = (function () { var cls = function Launcher() { }; cls.launchFileAsync = function launchFileAsync(file, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="file" type="Object">A param.</param> /// </signature> } cls.launchFileAsync = function launchFileAsync(file, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="file" type="Object">A param.</param> /// <param name="options" type="LauncherOptions">A param.</param> /// </signature> } cls.launchUriAsync = function launchUriAsync(uri, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="uri" type="Object">A param.</param> /// </signature> } cls.launchUriAsync = function launchUriAsync(uri, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="uri" type="Object">A param.</param> /// <param name="options" type="LauncherOptions">A param.</param> /// </signature> } return cls; }) (); exports.Launcher = Launcher;