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 <string> | 10 #include <string> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Convenience method to switch the current fullscreen mode. This has the same | 72 // Convenience method to switch the current fullscreen mode. This has the same |
73 // net effect as a ReleaseFullScreen(from_mode) call followed immediately by a | 73 // net effect as a ReleaseFullScreen(from_mode) call followed immediately by a |
74 // RequestFullScreen(to_mode). Must be called on the main thread. | 74 // RequestFullScreen(to_mode). Must be called on the main thread. |
75 BASE_EXPORT void SwitchFullScreenModes(FullScreenMode from_mode, | 75 BASE_EXPORT void SwitchFullScreenModes(FullScreenMode from_mode, |
76 FullScreenMode to_mode); | 76 FullScreenMode to_mode); |
77 | 77 |
78 // Set the visibility of the cursor. | 78 // Set the visibility of the cursor. |
79 BASE_EXPORT void SetCursorVisibility(bool visible); | 79 BASE_EXPORT void SetCursorVisibility(bool visible); |
80 | 80 |
81 // Should windows miniaturize on a double-click (on the title bar)? | |
82 BASE_EXPORT bool ShouldWindowsMiniaturizeOnDoubleClick(); | |
83 | |
84 // Activates the process with the given PID. | 81 // Activates the process with the given PID. |
85 BASE_EXPORT void ActivateProcess(pid_t pid); | 82 BASE_EXPORT void ActivateProcess(pid_t pid); |
86 | 83 |
87 // Returns true if this process is in the foreground, meaning that it's the | 84 // Returns true if this process is in the foreground, meaning that it's the |
88 // frontmost process, the one whose menu bar is shown at the top of the main | 85 // frontmost process, the one whose menu bar is shown at the top of the main |
89 // display. | 86 // display. |
90 BASE_EXPORT bool AmIForeground(); | 87 BASE_EXPORT bool AmIForeground(); |
91 | 88 |
92 // Excludes the file given by |file_path| from being backed up by Time Machine. | 89 // Excludes the file given by |file_path| from being backed up by Time Machine. |
93 BASE_EXPORT bool SetFileBackupExclusion(const FilePath& file_path); | 90 BASE_EXPORT bool SetFileBackupExclusion(const FilePath& file_path); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // If any error occurs, none of the input pointers are touched. | 225 // If any error occurs, none of the input pointers are touched. |
229 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 226 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
230 std::string* type, | 227 std::string* type, |
231 int32* major, | 228 int32* major, |
232 int32* minor); | 229 int32* minor); |
233 | 230 |
234 } // namespace mac | 231 } // namespace mac |
235 } // namespace base | 232 } // namespace base |
236 | 233 |
237 #endif // BASE_MAC_MAC_UTIL_H_ | 234 #endif // BASE_MAC_MAC_UTIL_H_ |
OLD | NEW |