Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Use the <code>chrome.browser</code> API to interact with the Chrome browser | |
| 6 // associated with the current application and Chrome profile. | |
| 7 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.
| |
| 8 // Options for the $(ref:openTab) function. | |
| 9 dictionary OpenTabOptions { | |
| 10 // 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.
| |
| 11 DOMString url; | |
| 12 }; | |
| 13 | |
| 14 callback Callback = void(); | |
| 15 | |
| 16 interface Functions { | |
| 17 // Opens a new tab in a browser window associated with the current | |
| 18 // application and Chrome profile. If no browser window for the Chrome | |
| 19 // 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.
| |
| 20 // initial URL of the new tab is specified in |options|. | |
| 21 // |options| : The $(ref:OpenTabOptions) for this function. | |
| 22 // |callback| : Called to indicate success or failure. | |
| 23 static void openTab(OpenTabOptions options, | |
| 24 Callback callback); | |
| 25 }; | |
| 26 }; | |
| OLD | NEW |