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. 4 5#include "ui/views/native_cursor.h" 6 7#include <Cocoa/Cocoa.h> 8 9namespace views { 10 11gfx::NativeCursor GetNativeIBeamCursor() { 12 return [NSCursor IBeamCursor]; 13} 14 15gfx::NativeCursor GetNativeArrowCursor() { 16 return [NSCursor arrowCursor]; 17} 18 19gfx::NativeCursor GetNativeHandCursor() { 20 return [NSCursor pointingHandCursor]; 21} 22 23gfx::NativeCursor GetNativeColumnResizeCursor() { 24 return [NSCursor resizeLeftRightCursor]; 25} 26 27gfx::NativeCursor GetNativeEastWestResizeCursor() { 28 NOTIMPLEMENTED(); 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]; 32} 33 34gfx::NativeCursor GetNativeNorthSouthResizeCursor() { 35 NOTIMPLEMENTED(); 36 return [NSCursor resizeUpDownCursor]; 37} 38 39} // namespace views 40