From fda3f446c8d12557aae3223830bae8bf07721e8f Mon Sep 17 00:00:00 2001 From: Andrew Fong Date: Wed, 16 Sep 2015 00:00:24 +0000 Subject: [PATCH] chrome.runtime.openOptionsPage --- chrome/chrome-tests.ts | 9 +++++++++ chrome/chrome.d.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/chrome/chrome-tests.ts b/chrome/chrome-tests.ts index cbbe93791f..f17c9abc8e 100644 --- a/chrome/chrome-tests.ts +++ b/chrome/chrome-tests.ts @@ -249,3 +249,12 @@ function contentSettings() { } }); } + +// https://developer.chrome.com/extensions/runtime#method-openOptionsPage +function testOptionsPage() { + chrome.runtime.openOptionsPage(); + chrome.runtime.openOptionsPage(function() { + // Do a thing ... + }); +} + diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index 2fc2fb6fc6..34bb95205c 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -1649,6 +1649,7 @@ declare module chrome.runtime { export function getPackageDirectoryEntry(callback: (directoryEntry: any) => void): void; export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void; export function getURL(path: string): string; + export function openOptionsPage(callback?: () => void): void; export function reload(): void; export function requestUpdateCheck(callback: (status: string, details?: UpdateCheckDetails) => void): void; export function restart(): void;