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

Side by Side Diff: ui/wm/core/native_cursor_manager.h

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/wm/core/masked_window_targeter.cc ('k') | ui/wm/core/native_cursor_manager_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ 5 #ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ 6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/wm/core/native_cursor_manager_delegate.h" 9 #include "ui/wm/core/native_cursor_manager_delegate.h"
10 #include "ui/wm/core/wm_core_export.h" 10 #include "ui/wm/core/wm_core_export.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Display; 13 class Display;
14 } 14 }
15 15
16 namespace views { 16 namespace wm {
17 namespace corewm {
18 17
19 // Interface where platforms such as Ash or Desktop aura are notified of 18 // Interface where platforms such as Ash or Desktop aura are notified of
20 // requested changes to cursor state. When requested, implementer should tell 19 // requested changes to cursor state. When requested, implementer should tell
21 // the CursorManager of any actual state changes performed through the 20 // the CursorManager of any actual state changes performed through the
22 // delegate. 21 // delegate.
23 class WM_CORE_EXPORT NativeCursorManager { 22 class WM_CORE_EXPORT NativeCursorManager {
24 public: 23 public:
25 virtual ~NativeCursorManager() {} 24 virtual ~NativeCursorManager() {}
26 25
27 // A request to set the screen DPI. Can cause changes in the current cursor. 26 // A request to set the screen DPI. Can cause changes in the current cursor.
28 virtual void SetDisplay( 27 virtual void SetDisplay(
29 const gfx::Display& display, 28 const gfx::Display& display,
30 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 29 wm::NativeCursorManagerDelegate* delegate) = 0;
31 30
32 // A request to set the cursor to |cursor|. At minimum, implementer should 31 // A request to set the cursor to |cursor|. At minimum, implementer should
33 // call NativeCursorManagerDelegate::CommitCursor() with whatever cursor is 32 // call NativeCursorManagerDelegate::CommitCursor() with whatever cursor is
34 // actually used. 33 // actually used.
35 virtual void SetCursor( 34 virtual void SetCursor(
36 gfx::NativeCursor cursor, 35 gfx::NativeCursor cursor,
37 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 36 wm::NativeCursorManagerDelegate* delegate) = 0;
38 37
39 // A request to set the visibility of the cursor. At minimum, implementer 38 // A request to set the visibility of the cursor. At minimum, implementer
40 // should call NativeCursorManagerDelegate::CommitVisibility() with whatever 39 // should call NativeCursorManagerDelegate::CommitVisibility() with whatever
41 // the visibility is. 40 // the visibility is.
42 virtual void SetVisibility( 41 virtual void SetVisibility(
43 bool visible, 42 bool visible,
44 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 43 wm::NativeCursorManagerDelegate* delegate) = 0;
45 44
46 // A request to set the scale of the cursor icon. 45 // A request to set the scale of the cursor icon.
47 virtual void SetScale( 46 virtual void SetScale(
48 float scale, 47 float scale,
49 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 48 wm::NativeCursorManagerDelegate* delegate) = 0;
50 49
51 // A request to set the scale of the cursor icon. 50 // A request to set the scale of the cursor icon.
52 virtual void SetCursorSet( 51 virtual void SetCursorSet(
53 ui::CursorSetType cursor_set, 52 ui::CursorSetType cursor_set,
54 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 53 wm::NativeCursorManagerDelegate* delegate) = 0;
55 54
56 // A request to set whether mouse events are disabled. At minimum, 55 // A request to set whether mouse events are disabled. At minimum,
57 // implementer should call NativeCursorManagerDelegate:: 56 // implementer should call NativeCursorManagerDelegate::
58 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. 57 // CommitMouseEventsEnabled() with whether mouse events are actually enabled.
59 virtual void SetMouseEventsEnabled( 58 virtual void SetMouseEventsEnabled(
60 bool enabled, 59 bool enabled,
61 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 60 wm::NativeCursorManagerDelegate* delegate) = 0;
62 }; 61 };
63 62
64 } // namespace corewm 63 } // namespace wm
65 } // namespace views
66 64
67 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ 65 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/masked_window_targeter.cc ('k') | ui/wm/core/native_cursor_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698