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

Side by Side Diff: ui/views/native_cursor_mac.mm

Issue 248863002: MacViews: Introduce native_cursor.h to provide cursor "literals" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « ui/views/native_cursor_aura.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
9 namespace views {
10
11 gfx::NativeCursor GetNativeIBeamCursor() {
12 return [NSCursor IBeamCursor];
13 }
14
15 gfx::NativeCursor GetNativeArrowCursor() {
16 return [NSCursor arrowCursor];
17 }
18
19 gfx::NativeCursor GetNativeHandCursor() {
20 return [NSCursor pointingHandCursor];
21 }
22
23 gfx::NativeCursor GetNativeColumnResizeCursor() {
24 return [NSCursor resizeLeftRightCursor];
25 }
26
27 gfx::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
34 gfx::NativeCursor GetNativeNorthSouthResizeCursor() {
35 NOTIMPLEMENTED();
36 return [NSCursor resizeUpDownCursor];
37 }
38
39 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/native_cursor_aura.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698