| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UTIL_H_ | 5 #ifndef BASE_MAC_UTIL_H_ |
| 6 #define BASE_MAC_UTIL_H_ | 6 #define BASE_MAC_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // kFullScreenModeNormal is not a valid FullScreenMode, but it is useful to | 43 // kFullScreenModeNormal is not a valid FullScreenMode, but it is useful to |
| 44 // other classes, so we include it here. | 44 // other classes, so we include it here. |
| 45 kFullScreenModeNormal = 10, | 45 kFullScreenModeNormal = 10, |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 std::string PathFromFSRef(const FSRef& ref); | 48 std::string PathFromFSRef(const FSRef& ref); |
| 49 bool FSRefFromPath(const std::string& path, FSRef* ref); | 49 bool FSRefFromPath(const std::string& path, FSRef* ref); |
| 50 | 50 |
| 51 // Returns true if the application is running from a bundle | 51 // Returns true if the application is running from a bundle |
| 52 bool AmIBundled(); | 52 bool AmIBundled(); |
| 53 void SetOverrideAmIBundled(bool value); |
| 53 | 54 |
| 54 // Returns true if this process is marked as a "Background only process". | 55 // Returns true if this process is marked as a "Background only process". |
| 55 bool IsBackgroundOnlyProcess(); | 56 bool IsBackgroundOnlyProcess(); |
| 56 | 57 |
| 57 // Returns the main bundle or the override, used for code that needs | 58 // Returns the main bundle or the override, used for code that needs |
| 58 // to fetch resources from bundles, but work within a unittest where we | 59 // to fetch resources from bundles, but work within a unittest where we |
| 59 // aren't a bundle. | 60 // aren't a bundle. |
| 60 NSBundle* MainAppBundle(); | 61 NSBundle* MainAppBundle(); |
| 61 FilePath MainAppBundlePath(); | 62 FilePath MainAppBundlePath(); |
| 62 | 63 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. | 184 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. |
| 184 bool WasLaunchedAsHiddenLoginItem(); | 185 bool WasLaunchedAsHiddenLoginItem(); |
| 185 | 186 |
| 186 // Retain/release calls for memory management in C++. | 187 // Retain/release calls for memory management in C++. |
| 187 void NSObjectRetain(void* obj); | 188 void NSObjectRetain(void* obj); |
| 188 void NSObjectRelease(void* obj); | 189 void NSObjectRelease(void* obj); |
| 189 | 190 |
| 190 } // namespace mac_util | 191 } // namespace mac_util |
| 191 | 192 |
| 192 #endif // BASE_MAC_UTIL_H_ | 193 #endif // BASE_MAC_UTIL_H_ |
| OLD | NEW |