summaryrefslogtreecommitdiffstats
path: root/base/mac_util.mm
diff options
context:
space:
mode:
Diffstat (limited to 'base/mac_util.mm')
-rw-r--r--base/mac_util.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm
index 1c4ef73b..2975b4e 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -167,6 +167,13 @@ void ReleaseFullScreen() {
SetSystemUIMode(kUIModeNormal, 0);
}
+void SetCursorVisibility(bool visible) {
+ if (visible)
+ [NSCursor unhide];
+ else
+ [NSCursor hide];
+}
+
void GrabWindowSnapshot(NSWindow* window,
std::vector<unsigned char>* png_representation) {
// Make sure to grab the "window frame" view so we get current tab +