| OLD | NEW |
| 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> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace(); | 38 BASE_EXPORT CGColorSpaceRef GetSRGBColorSpace(); |
| 39 | 39 |
| 40 // Returns the generic RGB color space. The return value is a static value; do | 40 // Returns the generic RGB color space. The return value is a static value; do |
| 41 // not release it! | 41 // not release it! |
| 42 BASE_EXPORT CGColorSpaceRef GetGenericRGBColorSpace(); | 42 BASE_EXPORT CGColorSpaceRef GetGenericRGBColorSpace(); |
| 43 | 43 |
| 44 // Returns the color space being used by the main display. The return value | 44 // Returns the color space being used by the main display. The return value |
| 45 // is a static value; do not release it! | 45 // is a static value; do not release it! |
| 46 BASE_EXPORT CGColorSpaceRef GetSystemColorSpace(); | 46 BASE_EXPORT CGColorSpaceRef GetSystemColorSpace(); |
| 47 | 47 |
| 48 // Returns true if both CGFloat values are equal. |
| 49 BASE_EXPORT bool IsCGFloatEqual(CGFloat a, CGFloat b); |
| 50 |
| 48 // Add a full screen request for the given |mode|. Must be paired with a | 51 // Add a full screen request for the given |mode|. Must be paired with a |
| 49 // ReleaseFullScreen() call for the same |mode|. This does not by itself create | 52 // ReleaseFullScreen() call for the same |mode|. This does not by itself create |
| 50 // a fullscreen window; rather, it manages per-application state related to | 53 // a fullscreen window; rather, it manages per-application state related to |
| 51 // hiding the dock and menubar. Must be called on the main thread. | 54 // hiding the dock and menubar. Must be called on the main thread. |
| 52 BASE_EXPORT void RequestFullScreen(FullScreenMode mode); | 55 BASE_EXPORT void RequestFullScreen(FullScreenMode mode); |
| 53 | 56 |
| 54 // Release a request for full screen mode. Must be matched with a | 57 // Release a request for full screen mode. Must be matched with a |
| 55 // RequestFullScreen() call for the same |mode|. As with RequestFullScreen(), | 58 // RequestFullScreen() call for the same |mode|. As with RequestFullScreen(), |
| 56 // this does not affect windows directly, but rather manages per-application | 59 // this does not affect windows directly, but rather manages per-application |
| 57 // state. For example, if there are no other outstanding | 60 // state. For example, if there are no other outstanding |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // If any error occurs, none of the input pointers are touched. | 172 // If any error occurs, none of the input pointers are touched. |
| 170 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 173 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
| 171 std::string* type, | 174 std::string* type, |
| 172 int32_t* major, | 175 int32_t* major, |
| 173 int32_t* minor); | 176 int32_t* minor); |
| 174 | 177 |
| 175 } // namespace mac | 178 } // namespace mac |
| 176 } // namespace base | 179 } // namespace base |
| 177 | 180 |
| 178 #endif // BASE_MAC_MAC_UTIL_H_ | 181 #endif // BASE_MAC_MAC_UTIL_H_ |
| OLD | NEW |