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 <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // |kFullScreenModeAutoHideAll| requests, this will reshow the menu bar. Must | 59 // |kFullScreenModeAutoHideAll| requests, this will reshow the menu bar. Must |
60 // be called on main thread. | 60 // be called on main thread. |
61 BASE_EXPORT void ReleaseFullScreen(FullScreenMode mode); | 61 BASE_EXPORT void ReleaseFullScreen(FullScreenMode mode); |
62 | 62 |
63 // Convenience method to switch the current fullscreen mode. This has the same | 63 // Convenience method to switch the current fullscreen mode. This has the same |
64 // net effect as a ReleaseFullScreen(from_mode) call followed immediately by a | 64 // net effect as a ReleaseFullScreen(from_mode) call followed immediately by a |
65 // RequestFullScreen(to_mode). Must be called on the main thread. | 65 // RequestFullScreen(to_mode). Must be called on the main thread. |
66 BASE_EXPORT void SwitchFullScreenModes(FullScreenMode from_mode, | 66 BASE_EXPORT void SwitchFullScreenModes(FullScreenMode from_mode, |
67 FullScreenMode to_mode); | 67 FullScreenMode to_mode); |
68 | 68 |
69 // Set the visibility of the cursor. | |
70 BASE_EXPORT void SetCursorVisibility(bool visible); | |
71 | |
72 // Activates the process with the given PID. | |
73 BASE_EXPORT void ActivateProcess(pid_t pid); | |
74 | |
75 // Returns true if this process is in the foreground, meaning that it's the | 69 // Returns true if this process is in the foreground, meaning that it's the |
76 // frontmost process, the one whose menu bar is shown at the top of the main | 70 // frontmost process, the one whose menu bar is shown at the top of the main |
77 // display. | 71 // display. |
78 BASE_EXPORT bool AmIForeground(); | 72 BASE_EXPORT bool AmIForeground(); |
79 | 73 |
80 // Excludes the file given by |file_path| from being backed up by Time Machine. | 74 // Excludes the file given by |file_path| from being backed up by Time Machine. |
81 BASE_EXPORT bool SetFileBackupExclusion(const FilePath& file_path); | 75 BASE_EXPORT bool SetFileBackupExclusion(const FilePath& file_path); |
82 | 76 |
83 // Checks if the current application is set as a Login Item, so it will launch | 77 // Checks if the current application is set as a Login Item, so it will launch |
84 // on Login. If a non-NULL pointer to is_hidden is passed, the Login Item also | 78 // on Login. If a non-NULL pointer to is_hidden is passed, the Login Item also |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // If any error occurs, none of the input pointers are touched. | 224 // If any error occurs, none of the input pointers are touched. |
231 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 225 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
232 std::string* type, | 226 std::string* type, |
233 int32_t* major, | 227 int32_t* major, |
234 int32_t* minor); | 228 int32_t* minor); |
235 | 229 |
236 } // namespace mac | 230 } // namespace mac |
237 } // namespace base | 231 } // namespace base |
238 | 232 |
239 #endif // BASE_MAC_MAC_UTIL_H_ | 233 #endif // BASE_MAC_MAC_UTIL_H_ |
OLD | NEW |