1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views/native_cursor.h"
7 #include <Cocoa/Cocoa.h>
11 gfx::NativeCursor GetNativeIBeamCursor() {
12 return [NSCursor IBeamCursor];
15 gfx::NativeCursor GetNativeArrowCursor() {
16 return [NSCursor arrowCursor];
19 gfx::NativeCursor GetNativeHandCursor() {
20 return [NSCursor pointingHandCursor];
23 gfx::NativeCursor GetNativeColumnResizeCursor() {
24 return [NSCursor resizeLeftRightCursor];
27 gfx::NativeCursor GetNativeEastWestResizeCursor() {
29 // TODO(tapted): This is the wrong cursor. Fetch the right one from WebCursor
30 // or ResourceBundle or CoreCursor private API.
31 return [NSCursor resizeLeftRightCursor];
34 gfx::NativeCursor GetNativeNorthSouthResizeCursor() {
36 return [NSCursor resizeUpDownCursor];