diff options
Diffstat (limited to 'ash/wm/cursor_delegate.h')
-rw-r--r-- | ash/wm/cursor_delegate.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ash/wm/cursor_delegate.h b/ash/wm/cursor_delegate.h new file mode 100644 index 0000000..05d901f --- /dev/null +++ b/ash/wm/cursor_delegate.h @@ -0,0 +1,26 @@ +// Copyright (c) 2012 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 ASH_WM_CURSOR_DELEGATE_H_ +#define ASH_WM_CURSOR_DELEGATE_H_ + +#include "ash/ash_export.h" +#include "ui/gfx/native_widget_types.h" + +namespace ash { + +// This interface is implmented by a platform specific object that changes +// the cursor's image and visibility. +class ASH_EXPORT CursorDelegate { + public: + virtual void SetCursor(gfx::NativeCursor cursor) = 0; + virtual void ShowCursor(bool visible) = 0; + + protected: + virtual ~CursorDelegate() {}; +}; + +} // namespace aura + +#endif // ASH_WM_CURSOR_DELEGATE_H_ |