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

Side by Side Diff: chrome/common/extensions/api/wallpaper_private.json

Issue 11092078: Add some error messages for setting wallpaper failures on Chrome(c++) side. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: use SetError Created 8 years, 2 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 | « chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js ('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 [ 5 [
6 { 6 {
7 "namespace":"wallpaperPrivate", 7 "namespace":"wallpaperPrivate",
8 "nodoc": "true", 8 "nodoc": "true",
9 "functions": [ 9 "functions": [
10 { 10 {
(...skipping 26 matching lines...) Expand all
37 "name": "wallpaper" 37 "name": "wallpaper"
38 }, 38 },
39 { 39 {
40 "type": "string", 40 "type": "string",
41 "name": "layout", 41 "name": "layout",
42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] 42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"]
43 }, 43 },
44 { 44 {
45 "type": "string", 45 "type": "string",
46 "name": "url" 46 "name": "url"
47 },
48 {
49 "type": "function",
50 "name": "callback",
51 "parameters": []
47 } 52 }
48 ] 53 ]
49 }, 54 },
50 { 55 {
51 "name": "setCustomWallpaper", 56 "name": "setCustomWallpaper",
52 "type": "function", 57 "type": "function",
53 "description": "Sets wallpaper to the image from local file with specifi ed layout", 58 "description": "Sets wallpaper to the image from local file with specifi ed layout",
54 "nodoc": "true", 59 "nodoc": "true",
55 "parameters": [ 60 "parameters": [
56 { 61 {
57 "type": "binary", 62 "type": "binary",
58 "name": "wallpaper" 63 "name": "wallpaper"
59 }, 64 },
60 { 65 {
61 "type": "string", 66 "type": "string",
62 "name": "layout", 67 "name": "layout",
63 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] 68 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"]
69 },
70 {
71 "type": "function",
72 "name": "callback",
73 "parameters": []
64 } 74 }
65 ] 75 ]
66 } 76 }
67 ] 77 ]
68 } 78 }
69 ] 79 ]
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698