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

Side by Side Diff: base/mac_util.h

Issue 4947002: Mac: Let browser_tests run in bundled mode for their whole lifetime. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: test Created 10 years, 1 month 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 | « base/base_paths_mac.mm ('k') | base/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) 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
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
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_
OLDNEW
« no previous file with comments | « base/base_paths_mac.mm ('k') | base/mac_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698