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

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

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (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
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_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_ 5 #ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
6 #define UI_VIEWS_COREWM_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/views/corewm/native_cursor_manager_delegate.h" 9 #include "ui/wm/core/native_cursor_manager_delegate.h"
10 #include "ui/views/views_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 views {
17 namespace corewm { 17 namespace corewm {
18 18
19 // Interface where platforms such as Ash or Desktop aura are notified of 19 // Interface where platforms such as Ash or Desktop aura are notified of
20 // requested changes to cursor state. When requested, implementer should tell 20 // requested changes to cursor state. When requested, implementer should tell
21 // the CursorManager of any actual state changes performed through the 21 // the CursorManager of any actual state changes performed through the
22 // delegate. 22 // delegate.
23 class VIEWS_EXPORT NativeCursorManager { 23 class WM_CORE_EXPORT NativeCursorManager {
24 public: 24 public:
25 virtual ~NativeCursorManager() {} 25 virtual ~NativeCursorManager() {}
26 26
27 // A request to set the screen DPI. Can cause changes in the current cursor. 27 // A request to set the screen DPI. Can cause changes in the current cursor.
28 virtual void SetDisplay( 28 virtual void SetDisplay(
29 const gfx::Display& display, 29 const gfx::Display& display,
30 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 30 views::corewm::NativeCursorManagerDelegate* delegate) = 0;
31 31
32 // A request to set the cursor to |cursor|. At minimum, implementer should 32 // A request to set the cursor to |cursor|. At minimum, implementer should
33 // call NativeCursorManagerDelegate::CommitCursor() with whatever cursor is 33 // call NativeCursorManagerDelegate::CommitCursor() with whatever cursor is
(...skipping 23 matching lines...) Expand all
57 // implementer should call NativeCursorManagerDelegate:: 57 // implementer should call NativeCursorManagerDelegate::
58 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. 58 // CommitMouseEventsEnabled() with whether mouse events are actually enabled.
59 virtual void SetMouseEventsEnabled( 59 virtual void SetMouseEventsEnabled(
60 bool enabled, 60 bool enabled,
61 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 61 views::corewm::NativeCursorManagerDelegate* delegate) = 0;
62 }; 62 };
63 63
64 } // namespace corewm 64 } // namespace corewm
65 } // namespace views 65 } // namespace views
66 66
67 #endif // UI_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_ 67 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/input_method_event_filter_unittest.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