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

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

Issue 137043005: Fix chrome.downloads.getFileIcon for hi-dpi and clarify docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ('k') | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.downloads</code> API to programmatically initiate, 5 // Use the <code>chrome.downloads</code> API to programmatically initiate,
6 // monitor, manipulate, and search for downloads. 6 // monitor, manipulate, and search for downloads.
7 [permissions=downloads] 7 [permissions=downloads]
8 namespace downloads { 8 namespace downloads {
9 [inline_doc] dictionary HeaderNameValuePair { 9 [inline_doc] dictionary HeaderNameValuePair {
10 // Name of the HTTP header. 10 // Name of the HTTP header.
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 DoubleDelta? totalBytes; 373 DoubleDelta? totalBytes;
374 374
375 // The change in <code>fileSize</code>, if any. 375 // The change in <code>fileSize</code>, if any.
376 DoubleDelta? fileSize; 376 DoubleDelta? fileSize;
377 377
378 // The change in <code>exists</code>, if any. 378 // The change in <code>exists</code>, if any.
379 BooleanDelta? exists; 379 BooleanDelta? exists;
380 }; 380 };
381 381
382 [inline_doc] dictionary GetFileIconOptions { 382 [inline_doc] dictionary GetFileIconOptions {
383 // The size of the icon. The returned icon will be square with dimensions 383 // The size of the returned icon. The icon will be square with dimensions
384 // size * size pixels. The default size for the icon is 32x32 pixels. 384 // size * size pixels. The default and largest size for the icon is 32x32
385 // pixels. The only supported sizes are 16 and 32. It is an error to specify
386 // any other size.
385 [legalValues=(16,32)] long? size; 387 [legalValues=(16,32)] long? size;
386 }; 388 };
387 389
388 callback DownloadCallback = void(long downloadId); 390 callback DownloadCallback = void(long downloadId);
389 callback SearchCallback = void(DownloadItem[] results); 391 callback SearchCallback = void(DownloadItem[] results);
390 callback EraseCallback = void(long[] erasedIds); 392 callback EraseCallback = void(long[] erasedIds);
391 callback NullCallback = void(); 393 callback NullCallback = void();
392 callback GetFileIconCallback = void(optional DOMString iconURL); 394 callback GetFileIconCallback = void(optional DOMString iconURL);
393 callback SuggestFilenameCallback = void( 395 callback SuggestFilenameCallback = void(
394 optional FilenameSuggestion suggestion); 396 optional FilenameSuggestion suggestion);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // <code>suggestion</code> object to <code>suggest</code> wins. In order to 539 // <code>suggestion</code> object to <code>suggest</code> wins. In order to
538 // avoid confusion regarding which extension will win, users should not 540 // avoid confusion regarding which extension will win, users should not
539 // install extensions that may conflict. If the download is initiated by 541 // install extensions that may conflict. If the download is initiated by
540 // $ref:download and the target filename is known before the MIME type and 542 // $ref:download and the target filename is known before the MIME type and
541 // tentative filename have been determined, pass <code>filename</code> to 543 // tentative filename have been determined, pass <code>filename</code> to
542 // $ref:download instead. 544 // $ref:download instead.
543 [maxListeners=1] static void onDeterminingFilename( 545 [maxListeners=1] static void onDeterminingFilename(
544 DownloadItem downloadItem, SuggestFilenameCallback suggest); 546 DownloadItem downloadItem, SuggestFilenameCallback suggest);
545 }; 547 };
546 }; 548 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698