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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_cursor_manager.h

Issue 92413002: Cursor state should be global for all CursorManagers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for review Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 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 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_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/corewm/native_cursor_manager.h" 10 #include "ui/views/corewm/native_cursor_manager.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) OVERRIDE; 54 views::corewm::NativeCursorManagerDelegate* delegate) OVERRIDE;
55 virtual void SetScale( 55 virtual void SetScale(
56 float scale, 56 float scale,
57 views::corewm::NativeCursorManagerDelegate* delegate) OVERRIDE; 57 views::corewm::NativeCursorManagerDelegate* delegate) OVERRIDE;
58 virtual void SetMouseEventsEnabled( 58 virtual void SetMouseEventsEnabled(
59 bool enabled, 59 bool enabled,
60 views::corewm::NativeCursorManagerDelegate* delegate) OVERRIDE; 60 views::corewm::NativeCursorManagerDelegate* delegate) OVERRIDE;
61 61
62 // TODO(tdanderson): We should store a static set of root windows
63 // and notify all of them whenever the cursor state changes (similar
64 // to what AshNativeCursorManager does).
62 aura::RootWindow* root_window_; 65 aura::RootWindow* root_window_;
63 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_; 66 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_;
64 scoped_ptr<ui::CursorLoader> cursor_loader_; 67 scoped_ptr<ui::CursorLoader> cursor_loader_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); 69 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager);
67 }; 70 };
68 71
69 } // namespace views 72 } // namespace views
70 73
71 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ 74 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_
72 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698