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

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

Issue 16370006: Make the favicons look visually the same after refreshing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « 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 <AvailabilityMacros.h> 8 #include <AvailabilityMacros.h>
9 #include <Carbon/Carbon.h> 9 #include <Carbon/Carbon.h>
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 kFullScreenModeNormal = 10, 40 kFullScreenModeNormal = 10,
41 }; 41 };
42 42
43 BASE_EXPORT std::string PathFromFSRef(const FSRef& ref); 43 BASE_EXPORT std::string PathFromFSRef(const FSRef& ref);
44 BASE_EXPORT bool FSRefFromPath(const std::string& path, FSRef* ref); 44 BASE_EXPORT bool FSRefFromPath(const std::string& path, FSRef* ref);
45 45
46 // Returns an sRGB color space. The return value is a static value; do not 46 // Returns an sRGB color space. The return value is a static value; do not
47 // release it! 47 // release it!
48 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace(); 48 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace();
49 49
50 // Returns the generic RGB color space. The return value is a static value; do
51 // not release it!
52 BASE_EXPORT CGColorSpaceRef GetGenericRGBColorSpace();
53
50 // Returns the color space being used by the main display. The return value 54 // Returns the color space being used by the main display. The return value
51 // is a static value; do not release it! 55 // is a static value; do not release it!
52 BASE_EXPORT CGColorSpaceRef GetSystemColorSpace(); 56 BASE_EXPORT CGColorSpaceRef GetSystemColorSpace();
53 57
54 // Add a full screen request for the given |mode|. Must be paired with a 58 // Add a full screen request for the given |mode|. Must be paired with a
55 // ReleaseFullScreen() call for the same |mode|. This does not by itself create 59 // ReleaseFullScreen() call for the same |mode|. This does not by itself create
56 // a fullscreen window; rather, it manages per-application state related to 60 // a fullscreen window; rather, it manages per-application state related to
57 // hiding the dock and menubar. Must be called on the main thread. 61 // hiding the dock and menubar. Must be called on the main thread.
58 BASE_EXPORT void RequestFullScreen(FullScreenMode mode); 62 BASE_EXPORT void RequestFullScreen(FullScreenMode mode);
59 63
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // If any error occurs, none of the input pointers are touched. 195 // If any error occurs, none of the input pointers are touched.
192 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, 196 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident,
193 std::string* type, 197 std::string* type,
194 int32* major, 198 int32* major,
195 int32* minor); 199 int32* minor);
196 200
197 } // namespace mac 201 } // namespace mac
198 } // namespace base 202 } // namespace base
199 203
200 #endif // BASE_MAC_MAC_UTIL_H_ 204 #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