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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 12769017: Add delete context menu for custom wallpapers and some ui tweaks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
7 7
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
10 #include "chrome/browser/chromeos/login/user.h" 10 #include "chrome/browser/chromeos/login/user.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::string url_; 130 std::string url_;
131 131
132 // String representation of downloaded wallpaper. 132 // String representation of downloaded wallpaper.
133 std::string image_data_; 133 std::string image_data_;
134 134
135 // Sequence token associated with wallpaper operations. Shared with 135 // Sequence token associated with wallpaper operations. Shared with
136 // WallpaperManager. 136 // WallpaperManager.
137 base::SequencedWorkerPool::SequenceToken sequence_token_; 137 base::SequencedWorkerPool::SequenceToken sequence_token_;
138 }; 138 };
139 139
140 class WallpaperPrivateResetWallpaperFunction
141 : public AsyncExtensionFunction {
142 public:
143 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.resetWallpaper",
144 WALLPAPERPRIVATE_RESETWALLPAPER)
145
146 WallpaperPrivateResetWallpaperFunction();
147
148 protected:
149 virtual ~WallpaperPrivateResetWallpaperFunction();
150
151 // AsyncExtensionFunction overrides.
152 virtual bool RunImpl() OVERRIDE;
153 };
154
140 class WallpaperPrivateSetCustomWallpaperFunction 155 class WallpaperPrivateSetCustomWallpaperFunction
141 : public WallpaperFunctionBase { 156 : public WallpaperFunctionBase {
142 public: 157 public:
143 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaper", 158 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaper",
144 WALLPAPERPRIVATE_SETCUSTOMWALLPAPER) 159 WALLPAPERPRIVATE_SETCUSTOMWALLPAPER)
145 160
146 WallpaperPrivateSetCustomWallpaperFunction(); 161 WallpaperPrivateSetCustomWallpaperFunction();
147 162
148 protected: 163 protected:
149 virtual ~WallpaperPrivateSetCustomWallpaperFunction(); 164 virtual ~WallpaperPrivateSetCustomWallpaperFunction();
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Sends the list of files to extension api caller. If no files or no 323 // Sends the list of files to extension api caller. If no files or no
309 // directory, sends empty list. 324 // directory, sends empty list.
310 void OnComplete(const std::vector<std::string>& file_list); 325 void OnComplete(const std::vector<std::string>& file_list);
311 326
312 // Sequence token associated with wallpaper operations. Shared with 327 // Sequence token associated with wallpaper operations. Shared with
313 // WallpaperManager. 328 // WallpaperManager.
314 base::SequencedWorkerPool::SequenceToken sequence_token_; 329 base::SequencedWorkerPool::SequenceToken sequence_token_;
315 }; 330 };
316 331
317 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 332 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698