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

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

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 9 years, 8 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_unittest.cc ('k') | ui/gfx/image_unittest_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Because the unit tests for gfx::Image are spread across multiple
6 // implementation files, this header contains the reusable components.
7
8 #ifndef UI_GFX_IMAGE_UNITTEST_UTIL_H_
9 #define UI_GFX_IMAGE_UNITTEST_UTIL_H_
10
11 #include "ui/gfx/image.h"
12
13 namespace gfx {
14 namespace test {
15
16 #if defined(OS_MACOSX)
17 typedef NSImage* PlatformImage;
18 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
19 typedef GdkPixbuf* PlatformImage;
20 #else
21 typedef const SkBitmap* PlatformImage;
22 #endif
23
24 SkBitmap* CreateBitmap(int width, int height);
25
26 PlatformImage CreatePlatformImage();
27
28 gfx::Image::RepresentationType GetPlatformRepresentationType();
29
30 } // namespace test
31 } // namespace gfx
32
33 #endif // UI_GFX_IMAGE_UNITTEST_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/image_unittest.cc ('k') | ui/gfx/image_unittest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698