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

Side by Side Diff: ash/wm/native_cursor_manager_ash.h

Issue 2932563002: Implement cursor changing on Mushrome (Closed)
Patch Set: why would you put that there Created 3 years, 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #ifndef ASH_WM_NATIVE_CURSOR_MANAGER_ASH_H_
6 #define ASH_WM_NATIVE_CURSOR_MANAGER_ASH_H_
7
8 #include <memory>
James Cook 2017/06/13 00:49:26 not needed
Elliot Glaysher 2017/06/13 18:05:45 Removed half the includes.
9
10 #include "ash/ash_export.h"
11 #include "base/compiler_specific.h"
James Cook 2017/06/13 00:49:26 Is this needed?
12 #include "base/macros.h"
13 #include "base/strings/string16.h"
James Cook 2017/06/13 00:49:26 many of these are not needed
14 #include "ui/display/display.h"
15 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/native_widget_types.h"
17 #include "ui/wm/core/native_cursor_manager.h"
18 #include "ui/wm/core/native_cursor_manager_delegate.h"
19
20 namespace ash {
21
22 // Ash specific extensions to NativeCursorManager. This lets us switch whether
23 // we're using the native cursor, along with exposing additional data about how
24 // we're going to render cursors.
25 class ASH_EXPORT NativeCursorManagerAsh : public ::wm::NativeCursorManager {
26 public:
27 ~NativeCursorManagerAsh() override = default;
28
29 // Toggle native cursor enabled/disabled.
30 // The native cursor is enabled by default. When disabled, we hide the native
31 // cursor regardless of visibility state, and let CursorWindowManager draw
32 // the cursor.
33 virtual void SetNativeCursorEnabled(bool enabled) = 0;
34
35 // Returns the scale and rotation of the currently loaded cursor.
36 virtual float GetScale() const = 0;
37 virtual display::Display::Rotation GetRotation() const = 0;
38
39 protected:
40 NativeCursorManagerAsh() = default;
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(NativeCursorManagerAsh);
44 };
45
46 } // namespace ash
47
48 #endif // ASH_WM_NATIVE_CURSOR_MANAGER_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698