diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-25 23:01:43 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-25 23:01:43 +0000 |
commit | 01644b15da47748a28fb595a9ead316965891113 (patch) | |
tree | c3af6592f1efa77347d942a66f4a5239c9b855c7 /ui/views/native_cursor.h | |
parent | 141e6490d98ac90b9a4898b6a52c08e7ec98b08a (diff) | |
download | chromium_src-01644b15da47748a28fb595a9ead316965891113.zip chromium_src-01644b15da47748a28fb595a9ead316965891113.tar.gz chromium_src-01644b15da47748a28fb595a9ead316965891113.tar.bz2 |
MacViews: Introduce native_cursor.h to provide cursor "literals"
The ui:: cursors constants like ui::kCursorIBeam are gfx::NativeCursors
on aura, but not other platforms.
This change introduces ui/views/native_cursor.h, which provides a set of
functions giving gfx::NativeCursor constants in a platform-independent
way.
BUG=366007
Review URL: https://codereview.chromium.org/248863002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/native_cursor.h')
-rw-r--r-- | ui/views/native_cursor.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ui/views/native_cursor.h b/ui/views/native_cursor.h new file mode 100644 index 0000000..81f6e21 --- /dev/null +++ b/ui/views/native_cursor.h @@ -0,0 +1,21 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_VIEWS_NATIVE_CURSOR_H_ +#define UI_VIEWS_NATIVE_CURSOR_H_ + +#include "ui/gfx/native_widget_types.h" +#include "ui/views/views_export.h" + +namespace views { + +VIEWS_EXPORT gfx::NativeCursor GetNativeIBeamCursor(); +VIEWS_EXPORT gfx::NativeCursor GetNativeHandCursor(); +VIEWS_EXPORT gfx::NativeCursor GetNativeColumnResizeCursor(); +VIEWS_EXPORT gfx::NativeCursor GetNativeEastWestResizeCursor(); +VIEWS_EXPORT gfx::NativeCursor GetNativeNorthSouthResizeCursor(); + +} // namespace views + +#endif // UI_VIEWS_NATIVE_CURSOR_H_ |