Home
last modified time | relevance | path

Searched refs:ns_image (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/ui/gfx/image/
Dimage_mac_unittest.mm18 // Returns true if the structure of |ns_image| matches the structure
21 // - |ns_image| is not nil.
22 // - |ns_image| has NSImageReps of |scales|.
23 // - Each of the NSImageReps has a pixel size of [|ns_image| size] *
26 NSImage* ns_image,
30 if (!ns_image ||
31 [ns_image size].width != width ||
32 [ns_image size].height != height ||
33 [ns_image representations].count != scales.size()) {
40 for (size_t j = 0; j < [ns_image representations].count; ++j) {
[all …]
Dimage_unittest.cc474 NSImage* ns_image; in TEST_F() local
478 ns_image = image.CopyNSImage(); in TEST_F()
481 EXPECT_TRUE(ns_image); in TEST_F()
482 base::mac::NSObjectRelease(ns_image); in TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/status_icons/
Dstatus_icon_mac.mm68 NSImage* ns_image = gfx::SkBitmapToNSImage(*image.bitmap());
69 if (ns_image)
70 [item() setImage:ns_image];
76 NSImage* ns_image = gfx::SkBitmapToNSImage(*image.bitmap());
77 if (ns_image)
78 [item() setAlternateImage:ns_image];
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dbrowser_action_test_util_mac.mm44 NSImage* ns_image = [GetButton(browser_, index) image];
45 // gfx::Image takes ownership of the |ns_image| reference. We have to increase
46 // the ref count so |ns_image| stays around when the image object is
48 base::mac::NSObjectRetain(ns_image);
49 return gfx::Image(ns_image);
/external/chromium_org/ui/base/resource/
Dresource_bundle_mac.mm120 base::scoped_nsobject<NSImage> ns_image;
129 if (!ns_image.get()) {
130 ns_image.reset([[NSImage alloc] initWithData:ns_data]);
134 [ns_image addRepresentation:image_rep];
138 if (!ns_image.get()) {
144 image = gfx::Image(ns_image.release());
/external/chromium_org/chrome/browser/ui/tests/
Dui_gfx_image_unittest.mm28 NSImage* ns_image = image.ToNSImage();
29 [ns_image lockFocus];
31 [ns_image unlockFocus];