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

Side by Side Diff: ui/gfx/color_profile_mac.mm

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « ui/gfx/color_profile.cc ('k') | ui/gfx/color_profile_win.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/gfx/color_profile.h" 5 #include "ui/gfx/color_profile.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <stddef.h>
8 9
9 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
10 #include "base/mac/scoped_cftyperef.h" 11 #include "base/mac/scoped_cftyperef.h"
11 #include "ui/gfx/mac/coordinate_conversion.h" 12 #include "ui/gfx/mac/coordinate_conversion.h"
12 13
13 namespace { 14 namespace {
14 15
15 NSScreen* GetNSScreenFromBounds(const gfx::Rect& bounds) { 16 NSScreen* GetNSScreenFromBounds(const gfx::Rect& bounds) {
16 NSScreen* screen = nil; 17 NSScreen* screen = nil;
17 int overlap = 0; 18 int overlap = 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (!icc_profile) 80 if (!icc_profile)
80 return; 81 return;
81 size_t length = CFDataGetLength(icc_profile); 82 size_t length = CFDataGetLength(icc_profile);
82 if (gfx::InvalidColorProfileLength(length)) 83 if (gfx::InvalidColorProfileLength(length))
83 return; 84 return;
84 const unsigned char* data = CFDataGetBytePtr(icc_profile); 85 const unsigned char* data = CFDataGetBytePtr(icc_profile);
85 profile->assign(data, data + length); 86 profile->assign(data, data + length);
86 } 87 }
87 88
88 } // namespace gfx 89 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_profile.cc ('k') | ui/gfx/color_profile_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698