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

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

Issue 23486010: Adds a gfx_export.h to ui/gfx and converts all code in ui/gfx to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix find and replace error. Created 7 years, 3 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/image_family.h ('k') | ui/gfx/image/image_skia.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 #ifndef UI_GFX_IMAGE_IMAGE_PNG_REP_H_ 5 #ifndef UI_GFX_IMAGE_IMAGE_PNG_REP_H_
6 #define UI_GFX_IMAGE_IMAGE_PNG_REP_H_ 6 #define UI_GFX_IMAGE_IMAGE_PNG_REP_H_
7 7
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "ui/base/layout.h" 9 #include "ui/base/layout.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/gfx/gfx_export.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Size; 13 class Size;
14 14
15 // An ImagePNGRep represents a bitmap's png encoded data and the scale factor it 15 // An ImagePNGRep represents a bitmap's png encoded data and the scale factor it
16 // was intended for. 16 // was intended for.
17 struct UI_EXPORT ImagePNGRep { 17 struct UI_EXPORT ImagePNGRep {
18 ImagePNGRep(); 18 ImagePNGRep();
19 ImagePNGRep(const scoped_refptr<base::RefCountedMemory>& data, 19 ImagePNGRep(const scoped_refptr<base::RefCountedMemory>& data,
20 ui::ScaleFactor data_scale_factor); 20 ui::ScaleFactor data_scale_factor);
21 ~ImagePNGRep(); 21 ~ImagePNGRep();
22 22
23 // Width and height of the image, in pixels. 23 // Width and height of the image, in pixels.
24 // If the image is invalid, returns gfx::Size(0, 0). 24 // If the image is invalid, returns gfx::Size(0, 0).
25 // Warning: This operation processes the entire image stream, so its result 25 // Warning: This operation processes the entire image stream, so its result
26 // should be cached if it is needed multiple times. 26 // should be cached if it is needed multiple times.
27 gfx::Size Size() const; 27 gfx::Size Size() const;
28 28
29 scoped_refptr<base::RefCountedMemory> raw_data; 29 scoped_refptr<base::RefCountedMemory> raw_data;
30 ui::ScaleFactor scale_factor; 30 ui::ScaleFactor scale_factor;
31 }; 31 };
32 32
33 } // namespace gfx 33 } // namespace gfx
34 34
35 #endif // UI_GFX_IMAGE_IMAGE_PNG_REP_H_ 35 #endif // UI_GFX_IMAGE_IMAGE_PNG_REP_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_family.h ('k') | ui/gfx/image/image_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698