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

Side by Side Diff: ui/gfx/image/image.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/image/canvas_image_source.h ('k') | ui/gfx/image/image_family.h » ('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 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage, 5 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage,
6 // or a SkBitmap. This also provides easy conversion to other image types 6 // or a SkBitmap. This also provides easy conversion to other image types
7 // through operator overloading. It will cache the converted representations 7 // through operator overloading. It will cache the converted representations
8 // internally to prevent double-conversion. 8 // internally to prevent double-conversion.
9 // 9 //
10 // The lifetime of both the initial representation and any converted ones are 10 // The lifetime of both the initial representation and any converted ones are
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 #if defined(TOOLKIT_GTK) 47 #if defined(TOOLKIT_GTK)
48 class CairoCachedSurface; 48 class CairoCachedSurface;
49 #endif 49 #endif
50 50
51 namespace internal { 51 namespace internal {
52 class ImageRep; 52 class ImageRep;
53 class ImageStorage; 53 class ImageStorage;
54 } 54 }
55 55
56 class UI_EXPORT Image { 56 class GFX_EXPORT Image {
57 public: 57 public:
58 enum RepresentationType { 58 enum RepresentationType {
59 kImageRepGdk, 59 kImageRepGdk,
60 kImageRepCocoa, 60 kImageRepCocoa,
61 kImageRepCocoaTouch, 61 kImageRepCocoaTouch,
62 kImageRepCairo, 62 kImageRepCairo,
63 kImageRepSkia, 63 kImageRepSkia,
64 kImageRepPNG, 64 kImageRepPNG,
65 }; 65 };
66 66
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // be cheaply copied. 202 // be cheaply copied.
203 scoped_refptr<internal::ImageStorage> storage_; 203 scoped_refptr<internal::ImageStorage> storage_;
204 204
205 friend class ::ImageTest; 205 friend class ::ImageTest;
206 friend class ::ImageMacTest; 206 friend class ::ImageMacTest;
207 }; 207 };
208 208
209 } // namespace gfx 209 } // namespace gfx
210 210
211 #endif // UI_GFX_IMAGE_IMAGE_H_ 211 #endif // UI_GFX_IMAGE_IMAGE_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/canvas_image_source.h ('k') | ui/gfx/image/image_family.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698