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

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

Issue 7055010: Rename internal gfx::Image members to be less confusing with Cocoa types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/image_unittest.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 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 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 // Because the unit tests for gfx::Image are spread across multiple 5 // Because the unit tests for gfx::Image are spread across multiple
6 // implementation files, this header contains the reusable components. 6 // implementation files, this header contains the reusable components.
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/image_unittest_util.h" 9 #include "ui/gfx/image_unittest_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 25 matching lines...) Expand all
36 return image; 36 return image;
37 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) 37 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
38 return gfx::GdkPixbufFromSkBitmap(bitmap.get()); 38 return gfx::GdkPixbufFromSkBitmap(bitmap.get());
39 #else 39 #else
40 return bitmap.release(); 40 return bitmap.release();
41 #endif 41 #endif
42 } 42 }
43 43
44 gfx::Image::RepresentationType GetPlatformRepresentationType() { 44 gfx::Image::RepresentationType GetPlatformRepresentationType() {
45 #if defined(OS_MACOSX) 45 #if defined(OS_MACOSX)
46 return gfx::Image::kNSImageRep; 46 return gfx::Image::kImageRepCocoa;
47 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) 47 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
48 return gfx::Image::kGdkPixbufRep; 48 return gfx::Image::kImageRepGdk;
49 #else 49 #else
50 return gfx::Image::kSkBitmapRep; 50 return gfx::Image::kImageRepSkia;
51 #endif 51 #endif
52 } 52 }
53 53
54 } // namespace test 54 } // namespace test
55 } // namespace gfx 55 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/image_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698