winjs - winrt updates Merge branch 'master' of https://github.com/craigktreasure/DefinitelyTyped into winjs-updates

This commit is contained in:
basarat 2014-01-26 11:16:12 +11:00
commit 82fcdaf511
2 changed files with 8670 additions and 323 deletions

8896
winjs/winjs.d.ts vendored

File diff suppressed because it is too large Load Diff

97
winrt/winrt.d.ts vendored
View File

@ -1773,16 +1773,31 @@ declare module Windows {
}
export interface IPackage {
dependencies: Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Package>;
description: string;
displayName: string;
id: Windows.ApplicationModel.PackageId;
installedLocation: Windows.Storage.StorageFolder;
isBundle: boolean;
isDevelopmentMode: boolean;
isFramework: boolean;
isResourcePackage: boolean;
logo: Windows.Foundation.Uri;
publisherDisplayName: string;
}
export class Package implements Windows.ApplicationModel.IPackage {
static current: Windows.ApplicationModel.Package;
dependencies: Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Package>;
description: string;
displayName: string;
id: Windows.ApplicationModel.PackageId;
installedLocation: Windows.Storage.StorageFolder;
isBundle: boolean;
isDevelopmentMode: boolean;
isFramework: boolean;
static current: Windows.ApplicationModel.Package;
isResourcePackage: boolean;
logo: Windows.Foundation.Uri;
publisherDisplayName: string;
}
export interface IPackageStatics {
current: Windows.ApplicationModel.Package;
@ -11524,13 +11539,78 @@ declare module Windows {
snapped,
fullScreenPortrait,
}
export interface IApplicationViewStatics {
value: Windows.UI.ViewManagement.ApplicationViewState;
tryUnsnap(): boolean;
}
/**
* Defines an instance of a window (app view) and the information that describes it.
**/
export class ApplicationView {
/**
* Gets the window (app view) for the current app.
**/
static getForCurrentView(): ApplicationView;
/**
* Attempts to unsnap a previously snapped app. This call will only succeed when the app is running in the foreground.
**/
static tryUnsnap(): boolean;
/**
* Gets the state of the current app view.
**/
static value: Windows.UI.ViewManagement.ApplicationViewState;
static tryUnsnap(): boolean;
/**
* Indicates whether the app terminates when the last window is closed.
**/
static terminateAppOnFinalViewClose: boolean;
/**
* Gets the current orientation of the window (app view) with respect to the display.
**/
orientation: ApplicationViewOrientation;
/**
* Gets or sets the displayed title of the window.
**/
title: string;
/**
* Gets or sets whether screen capture is enabled for the window (app view).
**/
isScreenCaptureEnabled: boolean;
/**
* Gets whether the window (app view) is on the Windows lock screen.
**/
isOnLockScreen: boolean;
/**
* Gets whether the window(app view) is full screen or not.
**/
isFullScreen: boolean;
/**
* Gets the current ID of the window (app view) .
**/
id: number;
/**
* Gets whether the current window (app view) is adjacent to the right edge of the screen.
**/
adjacentToRightDisplayEdge: boolean;
/**
* Gets whether the current window (app view) is adjacent to the left edge of the screen.
**/
adjacentToLeftDisplayEdge: number;
}
/**
* Defines the set of display orientation modes for a window (app view).
**/
export enum ApplicationViewOrientation {
landscape,
portrait
}
export interface IInputPaneVisibilityEventArgs {
ensuredFocusedElementInView: boolean;
@ -14655,5 +14735,10 @@ declare module Windows.Foundation {
done?<U>(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void): void;
cancel(): void;
onerror?(eventInfo: CustomEvent): void;
addEventListener?(type: string, listener: Function, capture?: boolean): void;
dispatchEvent?(type: string, details: any): boolean;
removeEventListener?(eventType: string, listener: Function, capture?: boolean): void;
}
}