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

Unified Diff: ash/shell.h

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 168854feb58714d899119f4cef556fc1e8a3c9ab..c6047ea003b4f007fa34a3f257e581027b3e1314 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -11,7 +11,6 @@
#include "ash/ash_export.h"
#include "ash/shelf_types.h"
#include "ash/system/user/login_status.h"
-#include "ash/wm/cursor_manager.h"
#include "ash/wm/system_modal_container_event_filter_delegate.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -23,6 +22,7 @@
#include "ui/gfx/insets.h"
#include "ui/gfx/screen.h"
#include "ui/gfx/size.h"
+#include "ui/views/corewm/cursor_manager.h"
class CommandLine;
@@ -71,6 +71,7 @@ class MessageCenter;
namespace ash {
class AcceleratorController;
+class AshNativeCursorManager;
class CapsLockDelegate;
class DesktopBackgroundController;
class DisplayController;
@@ -327,7 +328,7 @@ class ASH_EXPORT Shell
internal::EventTransformationHandler* event_transformation_handler() {
return event_transformation_handler_.get();
}
- CursorManager* cursor_manager() { return &cursor_manager_; }
+ views::corewm::CursorManager* cursor_manager() { return &cursor_manager_; }
ShellDelegate* delegate() { return delegate_.get(); }
@@ -585,7 +586,10 @@ class ASH_EXPORT Shell
scoped_ptr<message_center::MessageCenter> message_center_;
- CursorManager cursor_manager_;
+ // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
+ // pointer to vend to test code.
+ AshNativeCursorManager* native_cursor_manager_;
+ views::corewm::CursorManager cursor_manager_;
ObserverList<ShellObserver> observers_;
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698