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

Side by Side Diff: base/mac/mac_util.h

Issue 2411643003: Remove deprecated methods PathFromFSRef and FSRefFromPath. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | base/mac/mac_util.mm » ('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 BASE_MAC_MAC_UTIL_H_ 5 #ifndef BASE_MAC_MAC_UTIL_H_
6 #define BASE_MAC_MAC_UTIL_H_ 6 #define BASE_MAC_MAC_UTIL_H_
7 7
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
Nico 2016/10/11 18:25:05 Do we still need this now?
erikchen 2016/10/11 21:02:11 Nope, but it means we have to fix IWYU.
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string> 10 #include <string>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 13
14 namespace base { 14 namespace base {
15 15
16 class FilePath; 16 class FilePath;
17 17
18 namespace mac { 18 namespace mac {
19 19
20 // Full screen modes, in increasing order of priority. More permissive modes 20 // Full screen modes, in increasing order of priority. More permissive modes
21 // take predecence. 21 // take predecence.
22 enum FullScreenMode { 22 enum FullScreenMode {
23 kFullScreenModeHideAll = 0, 23 kFullScreenModeHideAll = 0,
24 kFullScreenModeHideDock = 1, 24 kFullScreenModeHideDock = 1,
25 kFullScreenModeAutoHideAll = 2, 25 kFullScreenModeAutoHideAll = 2,
26 kNumFullScreenModes = 3, 26 kNumFullScreenModes = 3,
27 27
28 // kFullScreenModeNormal is not a valid FullScreenMode, but it is useful to 28 // kFullScreenModeNormal is not a valid FullScreenMode, but it is useful to
29 // other classes, so we include it here. 29 // other classes, so we include it here.
30 kFullScreenModeNormal = 10, 30 kFullScreenModeNormal = 10,
31 }; 31 };
32 32
33 BASE_EXPORT std::string PathFromFSRef(const FSRef& ref);
34 BASE_EXPORT bool FSRefFromPath(const std::string& path, FSRef* ref);
35
36 // Returns an sRGB color space. The return value is a static value; do not 33 // Returns an sRGB color space. The return value is a static value; do not
37 // release it! 34 // release it!
38 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace(); 35 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace();
39 36
40 // Returns the generic RGB color space. The return value is a static value; do 37 // Returns the generic RGB color space. The return value is a static value; do
41 // not release it! 38 // not release it!
42 BASE_EXPORT CGColorSpaceRef GetGenericRGBColorSpace(); 39 BASE_EXPORT CGColorSpaceRef GetGenericRGBColorSpace();
43 40
44 // Returns the color space being used by the main display. The return value 41 // Returns the color space being used by the main display. The return value
45 // is a static value; do not release it! 42 // is a static value; do not release it!
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // If any error occurs, none of the input pointers are touched. 166 // If any error occurs, none of the input pointers are touched.
170 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, 167 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident,
171 std::string* type, 168 std::string* type,
172 int32_t* major, 169 int32_t* major,
173 int32_t* minor); 170 int32_t* minor);
174 171
175 } // namespace mac 172 } // namespace mac
176 } // namespace base 173 } // namespace base
177 174
178 #endif // BASE_MAC_MAC_UTIL_H_ 175 #endif // BASE_MAC_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698