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

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

Issue 12334030: New custom wallpaper picker UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add bug reference 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 private: 151 private:
152 virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE; 152 virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
153 153
154 // Generates thumbnail of custom wallpaper. A simple STRETCH is used for 154 // Generates thumbnail of custom wallpaper. A simple STRETCH is used for
155 // generating thunbail. 155 // generating thunbail.
156 void GenerateThumbnail(const base::FilePath& thumbnail_path, 156 void GenerateThumbnail(const base::FilePath& thumbnail_path,
157 scoped_ptr<gfx::ImageSkia> image); 157 scoped_ptr<gfx::ImageSkia> image);
158 158
159 // Thumbnail is ready. Calls api function javascript callback. 159 // Thumbnail is ready. Calls api function javascript callback.
160 void ThumbnailGenerated(const std::string& file_name); 160 void ThumbnailGenerated(base::RefCountedBytes* data);
161 161
162 // Layout of the downloaded wallpaper. 162 // Layout of the downloaded wallpaper.
163 ash::WallpaperLayout layout_; 163 ash::WallpaperLayout layout_;
164 164
165 // True if need to generate thumbnail and pass to callback.
166 bool generate_thumbnail_;
167
168 // Unique file name of the custom wallpaper.
169 std::string file_name_;
170
165 // Email address of logged in user. 171 // Email address of logged in user.
166 std::string email_; 172 std::string email_;
167 173
168 // String representation of downloaded wallpaper. 174 // String representation of downloaded wallpaper.
169 std::string image_data_; 175 std::string image_data_;
170 176
171 // Sequence token associated with wallpaper operations. Shared with 177 // Sequence token associated with wallpaper operations. Shared with
172 // WallpaperManager. 178 // WallpaperManager.
173 base::SequencedWorkerPool::SequenceToken sequence_token_; 179 base::SequencedWorkerPool::SequenceToken sequence_token_;
174 }; 180 };
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // Sends the list of files to extension api caller. If no files or no 305 // Sends the list of files to extension api caller. If no files or no
300 // directory, sends empty list. 306 // directory, sends empty list.
301 void OnComplete(const std::vector<std::string>& file_list); 307 void OnComplete(const std::vector<std::string>& file_list);
302 308
303 // Sequence token associated with wallpaper operations. Shared with 309 // Sequence token associated with wallpaper operations. Shared with
304 // WallpaperManager. 310 // WallpaperManager.
305 base::SequencedWorkerPool::SequenceToken sequence_token_; 311 base::SequencedWorkerPool::SequenceToken sequence_token_;
306 }; 312 };
307 313
308 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 314 #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