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

Side by Side Diff: ui/views/corewm/native_cursor_manager.h

Issue 145313003: Implement cursor compositing mode on Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always update cursor image in SetCursor. Fixes initial wrong cursor. Created 6 years, 10 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_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_
6 #define UI_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_ 6 #define UI_VIEWS_COREWM_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/views/corewm/native_cursor_manager_delegate.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void SetCursorSet( 52 virtual void SetCursorSet(
53 ui::CursorSetType cursor_set, 53 ui::CursorSetType cursor_set,
54 views::corewm::NativeCursorManagerDelegate* delegate) = 0; 54 views::corewm::NativeCursorManagerDelegate* delegate) = 0;
55 55
56 // A request to set whether mouse events are disabled. At minimum, 56 // A request to set whether mouse events are disabled. At minimum,
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
63 // A request to set whether native cursors are enabled.
64 virtual void SetNativeCursorEnabled(
65 bool enabled,
66 views::corewm::NativeCursorManagerDelegate* delegate) = 0;
62 }; 67 };
63 68
64 } // namespace corewm 69 } // namespace corewm
65 } // namespace views 70 } // namespace views
66 71
67 #endif // UI_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_ 72 #endif // UI_VIEWS_COREWM_NATIVE_CURSOR_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698