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

Side by Side Diff: base/mac/mac_util.h

Issue 7069021: Non-path Time Machine Exclusions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months 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 | « no previous file | base/mac/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <Carbon/Carbon.h> 9 #include <Carbon/Carbon.h>
10 #include <string> 10 #include <string>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Set the visibility of the cursor. 71 // Set the visibility of the cursor.
72 void SetCursorVisibility(bool visible); 72 void SetCursorVisibility(bool visible);
73 73
74 // Should windows miniaturize on a double-click (on the title bar)? 74 // Should windows miniaturize on a double-click (on the title bar)?
75 bool ShouldWindowsMiniaturizeOnDoubleClick(); 75 bool ShouldWindowsMiniaturizeOnDoubleClick();
76 76
77 // Activates the process with the given PID. 77 // Activates the process with the given PID.
78 void ActivateProcess(pid_t pid); 78 void ActivateProcess(pid_t pid);
79 79
80 // Set the Time Machine exclusion property for the given file. 80 // Excludes the file given by |file_path| from being backed up by Time Machine.
81 bool SetFileBackupExclusion(const FilePath& file_path, bool exclude); 81 bool SetFileBackupExclusion(const FilePath& file_path);
82 82
83 // Sets the process name as displayed in Activity Monitor to process_name. 83 // Sets the process name as displayed in Activity Monitor to process_name.
84 void SetProcessName(CFStringRef process_name); 84 void SetProcessName(CFStringRef process_name);
85 85
86 // Converts a NSImage to a CGImageRef. Normally, the system frameworks can do 86 // Converts a NSImage to a CGImageRef. Normally, the system frameworks can do
87 // this fine, especially on 10.6. On 10.5, however, CGImage cannot handle 87 // this fine, especially on 10.6. On 10.5, however, CGImage cannot handle
88 // converting a PDF-backed NSImage into a CGImageRef. This function will 88 // converting a PDF-backed NSImage into a CGImageRef. This function will
89 // rasterize the PDF into a bitmap CGImage. The caller is responsible for 89 // rasterize the PDF into a bitmap CGImage. The caller is responsible for
90 // releasing the return value. 90 // releasing the return value.
91 CGImageRef CopyNSImageToCGImage(NSImage* image); 91 CGImageRef CopyNSImageToCGImage(NSImage* image);
(...skipping 15 matching lines...) Expand all
107 void RemoveFromLoginItems(); 107 void RemoveFromLoginItems();
108 108
109 // Returns true if the current process was automatically launched as a 109 // Returns true if the current process was automatically launched as a
110 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. 110 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows.
111 bool WasLaunchedAsHiddenLoginItem(); 111 bool WasLaunchedAsHiddenLoginItem();
112 112
113 } // namespace mac 113 } // namespace mac
114 } // namespace base 114 } // namespace base
115 115
116 #endif // BASE_MAC_MAC_UTIL_H_ 116 #endif // BASE_MAC_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698