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

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

Issue 11366143: Fix the crash in DesktopBackgroundView::OnPaint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oshima's review and rebase to TOT Created 8 years, 1 month 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 | « no previous file | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | 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 #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_resources.h" 8 #include "ash/desktop_background/desktop_background_resources.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "net/url_request/url_fetcher_delegate.h" 10 #include "net/url_request/url_fetcher_delegate.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // AsyncExtensionFunction overrides. 56 // AsyncExtensionFunction overrides.
57 virtual bool RunImpl() OVERRIDE; 57 virtual bool RunImpl() OVERRIDE;
58 58
59 private: 59 private:
60 virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE; 60 virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
61 61
62 // Saves the image data to a file. 62 // Saves the image data to a file.
63 void SaveToFile(); 63 void SaveToFile();
64 64
65 // Sets wallpaper to the decoded image. 65 // Sets wallpaper to the decoded image.
66 void SetDecodedWallpaper(); 66 void SetDecodedWallpaper(scoped_ptr<gfx::ImageSkia> wallpaper);
67 67
68 // Layout of the downloaded wallpaper. 68 // Layout of the downloaded wallpaper.
69 ash::WallpaperLayout layout_; 69 ash::WallpaperLayout layout_;
70 70
71 // The decoded wallpaper. 71 // The decoded wallpaper. It may accessed from UI thread to set wallpaper or
72 // FILE thread to resize and save wallpaper to disk.
72 gfx::ImageSkia wallpaper_; 73 gfx::ImageSkia wallpaper_;
73 74
74 // Email address of logged in user. 75 // Email address of logged in user.
75 std::string email_; 76 std::string email_;
76 77
77 // High resolution wallpaper URL. 78 // High resolution wallpaper URL.
78 std::string url_; 79 std::string url_;
79 80
80 // String representation of downloaded wallpaper. 81 // String representation of downloaded wallpaper.
81 std::string image_data_; 82 std::string image_data_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WallpaperRestoreMinimizedWindowsFunction(); 127 WallpaperRestoreMinimizedWindowsFunction();
127 128
128 protected: 129 protected:
129 virtual ~WallpaperRestoreMinimizedWindowsFunction(); 130 virtual ~WallpaperRestoreMinimizedWindowsFunction();
130 131
131 // AsyncExtensionFunction overrides. 132 // AsyncExtensionFunction overrides.
132 virtual bool RunImpl() OVERRIDE; 133 virtual bool RunImpl() OVERRIDE;
133 }; 134 };
134 135
135 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 136 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698