Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3377)

Unified Diff: chrome/common/extensions/api/browser.idl

Issue 245933002: Initial implementation of chrome.browser.openTab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6dfcad5924f60f2a425976b634db56cb705e216e
--- /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.
+namespace browser {
miket_OOO 2014/04/28 18:24:35 Let's nodoc this one for now.
rpaquay 2014/04/28 19:44:12 Done.
+ // Options for the $(ref:openTab) function.
+ dictionary OpenTabOptions {
+ // The URL to navigate to when the new tab is initially open.
miket_OOO 2014/04/28 18:24:35 opened
rpaquay 2014/04/28 19:44:12 Done.
+ 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 open, a new one is open prior to creating the new tab. The
miket_OOO 2014/04/28 18:24:35 "is opened"
rpaquay 2014/04/28 19:44:12 Done.
+ // 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);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698