summaryrefslogtreecommitdiffstats
path: root/ui/aura/cursor_delegate.h
blob: b21bbe805d714e86c63fed44af0eb6ae8933d750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 UI_AURA_CURSOR_DELEGATE_H_
#define UI_AURA_CURSOR_DELEGATE_H_
#pragma once

#include "ui/aura/aura_export.h"
#include "ui/gfx/native_widget_types.h"

namespace aura {

// This interface is implmented by a platform specific object that changes
// the cursor's image and visibility.
class AURA_EXPORT CursorDelegate {
 public:
  virtual void SetCursor(gfx::NativeCursor cursor) = 0;
  virtual void ShowCursor(bool visible) = 0;

 protected:
  virtual ~CursorDelegate() {};
};

}  // namespace aura

#endif  // UI_AURA_CURSOR_DELEGATE_H_