summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/apps/platform_apps/api/browser.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/apps/platform_apps/api/browser.idl')
-rw-r--r--chromium/chrome/common/apps/platform_apps/api/browser.idl26
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/chrome/common/apps/platform_apps/api/browser.idl b/chromium/chrome/common/apps/platform_apps/api/browser.idl
new file mode 100644
index 00000000000..971164bd068
--- /dev/null
+++ b/chromium/chrome/common/apps/platform_apps/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.
+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.
+ // |options|: Configures how the tab should be opened.
+ // |callback|: Called when the tab was successfully created, or failed to
+ // be created. If failed, $(ref:runtime.lastError) will be set.
+ static void openTab(OpenTabOptions options,
+ optional Callback callback);
+ };
+};