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

Unified Diff: chrome/browser/chromeos/login/user_image.h

Issue 10448105: Revert "Added support for animated/nonanimated user image. There are no" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_image.h
diff --git a/chrome/browser/chromeos/login/user_image.h b/chrome/browser/chromeos/login/user_image.h
deleted file mode 100644
index 9fa296587ca5963895d7cf3d50138fe804a9bf8e..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/user_image.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_H_
-#pragma once
-
-#include <vector>
-
-#include "ui/gfx/image/image_skia.h"
-
-namespace chromeos {
-
-// Wrapper class for bitmaps and raw images when it's necessary. Could
-// be used for storing profile images (including animated profile
-// images) and user wallpapers.
-class UserImage {
- public:
- typedef std::vector<unsigned char> RawImage;
-
- // Constructs UserImage from bitmap. Should be used where only
- // static image is needed (e.g. wallpapers).
- explicit UserImage(const gfx::ImageSkia& image);
-
- // Constructs UserImage from raw image and bitmap that should
- // represent single frame from that one. Can be used for wrapping
- // animated images.
- UserImage(const gfx::ImageSkia& image, const RawImage& raw_image);
-
- virtual ~UserImage();
-
- // Replaces already stored image to new |image|. Note, that
- // |raw_image| will be reset after that operation.
- void SetImage(const gfx::ImageSkia& image);
- const gfx::ImageSkia& image() const { return image_; }
- bool has_raw_image() const { return has_raw_image_; }
- bool has_animated_image() const { return has_animated_image_; }
- const RawImage& raw_image() const { return raw_image_; }
-
- private:
- gfx::ImageSkia image_;
- bool has_raw_image_;
- bool has_animated_image_;
- RawImage raw_image_;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_H_
« no previous file with comments | « chrome/browser/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698