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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // specified hide flag. | 162 // specified hide flag. |
163 void AddToLoginItems(bool hide_on_startup); | 163 void AddToLoginItems(bool hide_on_startup); |
164 | 164 |
165 // Removes the current application from the list Of Login Items. | 165 // Removes the current application from the list Of Login Items. |
166 void RemoveFromLoginItems(); | 166 void RemoveFromLoginItems(); |
167 | 167 |
168 // Returns true if the current process was automatically launched as a | 168 // Returns true if the current process was automatically launched as a |
169 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. | 169 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. |
170 bool WasLaunchedAsHiddenLoginItem(); | 170 bool WasLaunchedAsHiddenLoginItem(); |
171 | 171 |
| 172 // Retain/release calls for memory management in C++. |
| 173 void NSObjectRetain(void* obj); |
| 174 void NSObjectRelease(void* obj); |
| 175 |
172 } // namespace mac_util | 176 } // namespace mac_util |
173 | 177 |
174 #endif // BASE_MAC_UTIL_H_ | 178 #endif // BASE_MAC_UTIL_H_ |
OLD | NEW |