| Index: chrome/common/extensions/api/browser.idl
|
| diff --git a/chrome/common/extensions/api/browser.idl b/chrome/common/extensions/api/browser.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99515dcd4de0923cdaaf3e78d2bf600c95272a25
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/browser.idl
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Use the <code>chrome.browser</code> API to interact with the Chrome browser
|
| +// associated with the current application and Chrome profile.
|
| +[nodoc] namespace browser {
|
| + // Options for the $(ref:openTab) function.
|
| + dictionary OpenTabOptions {
|
| + // The URL to navigate to when the new tab is initially opened.
|
| + DOMString url;
|
| + };
|
| +
|
| + callback Callback = void();
|
| +
|
| + interface Functions {
|
| + // Opens a new tab in a browser window associated with the current
|
| + // application and Chrome profile. If no browser window for the Chrome
|
| + // profile is opened, a new one is opened prior to creating the new tab. The
|
| + // initial URL of the new tab is specified in |options|.
|
| + // |options| : The $(ref:OpenTabOptions) for this function.
|
| + // |callback| : Called to indicate success or failure.
|
| + static void openTab(OpenTabOptions options,
|
| + Callback callback);
|
| + };
|
| +};
|
|
|