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

Side by Side Diff: chrome/common/extensions/api/browser.idl

Issue 931533002: Make callback optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.browser</code> API to interact with the Chrome browser 5 // Use the <code>chrome.browser</code> API to interact with the Chrome browser
6 // associated with the current application and Chrome profile. 6 // associated with the current application and Chrome profile.
7 namespace browser { 7 namespace browser {
8 // Options for the $(ref:openTab) function. 8 // Options for the $(ref:openTab) function.
9 dictionary OpenTabOptions { 9 dictionary OpenTabOptions {
10 // The URL to navigate to when the new tab is initially opened. 10 // The URL to navigate to when the new tab is initially opened.
11 DOMString url; 11 DOMString url;
12 }; 12 };
13 13
14 callback Callback = void(); 14 callback Callback = void();
15 15
16 interface Functions { 16 interface Functions {
17 // Opens a new tab in a browser window associated with the current 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 18 // application and Chrome profile. If no browser window for the Chrome
19 // profile is opened, a new one is opened prior to creating the new tab. The 19 // profile is opened, a new one is opened prior to creating the new tab. The
20 // initial URL of the new tab is specified in |options|. 20 // initial URL of the new tab is specified in |options|.
21 // |options| : The $(ref:OpenTabOptions) for this function. 21 // |options| : The $(ref:OpenTabOptions) for this function.
22 // |callback| : Called to indicate success or failure. 22 // |callback| : Called to indicate success or failure.
23 static void openTab(OpenTabOptions options, 23 static void openTab(OpenTabOptions options,
24 Callback callback); 24 optional Callback callback);
25 }; 25 };
26 }; 26 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698