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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/shell.cc » ('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) 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 ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/shelf_types.h" 12 #include "ash/shelf_types.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "ash/wm/cursor_manager.h"
15 #include "ash/wm/system_modal_container_event_filter_delegate.h" 14 #include "ash/wm/system_modal_container_event_filter_delegate.h"
16 #include "base/basictypes.h" 15 #include "base/basictypes.h"
17 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
19 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
20 #include "base/observer_list.h" 19 #include "base/observer_list.h"
21 #include "ui/aura/client/activation_change_observer.h" 20 #include "ui/aura/client/activation_change_observer.h"
22 #include "ui/base/events/event_target.h" 21 #include "ui/base/events/event_target.h"
23 #include "ui/gfx/insets.h" 22 #include "ui/gfx/insets.h"
24 #include "ui/gfx/screen.h" 23 #include "ui/gfx/screen.h"
25 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
25 #include "ui/views/corewm/cursor_manager.h"
26 26
27 class CommandLine; 27 class CommandLine;
28 28
29 namespace aura { 29 namespace aura {
30 class EventFilter; 30 class EventFilter;
31 class RootWindow; 31 class RootWindow;
32 class Window; 32 class Window;
33 namespace client { 33 namespace client {
34 class ActivationClient; 34 class ActivationClient;
35 class FocusClient; 35 class FocusClient;
(...skipping 28 matching lines...) Expand all
64 } 64 }
65 } 65 }
66 66
67 namespace message_center { 67 namespace message_center {
68 class MessageCenter; 68 class MessageCenter;
69 } 69 }
70 70
71 namespace ash { 71 namespace ash {
72 72
73 class AcceleratorController; 73 class AcceleratorController;
74 class AshNativeCursorManager;
74 class CapsLockDelegate; 75 class CapsLockDelegate;
75 class DesktopBackgroundController; 76 class DesktopBackgroundController;
76 class DisplayController; 77 class DisplayController;
77 class HighContrastController; 78 class HighContrastController;
78 class Launcher; 79 class Launcher;
79 class LauncherDelegate; 80 class LauncherDelegate;
80 class LauncherModel; 81 class LauncherModel;
81 class MagnificationController; 82 class MagnificationController;
82 class NestedDispatcherController; 83 class NestedDispatcherController;
83 class PartialMagnificationController; 84 class PartialMagnificationController;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 321 }
321 DisplayController* display_controller() { 322 DisplayController* display_controller() {
322 return display_controller_.get(); 323 return display_controller_.get();
323 } 324 }
324 internal::MouseCursorEventFilter* mouse_cursor_filter() { 325 internal::MouseCursorEventFilter* mouse_cursor_filter() {
325 return mouse_cursor_filter_.get(); 326 return mouse_cursor_filter_.get();
326 } 327 }
327 internal::EventTransformationHandler* event_transformation_handler() { 328 internal::EventTransformationHandler* event_transformation_handler() {
328 return event_transformation_handler_.get(); 329 return event_transformation_handler_.get();
329 } 330 }
330 CursorManager* cursor_manager() { return &cursor_manager_; } 331 views::corewm::CursorManager* cursor_manager() { return &cursor_manager_; }
331 332
332 ShellDelegate* delegate() { return delegate_.get(); } 333 ShellDelegate* delegate() { return delegate_.get(); }
333 334
334 UserWallpaperDelegate* user_wallpaper_delegate() { 335 UserWallpaperDelegate* user_wallpaper_delegate() {
335 return user_wallpaper_delegate_.get(); 336 return user_wallpaper_delegate_.get();
336 } 337 }
337 338
338 CapsLockDelegate* caps_lock_delegate() { 339 CapsLockDelegate* caps_lock_delegate() {
339 return caps_lock_delegate_.get(); 340 return caps_lock_delegate_.get();
340 } 341 }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 579 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
579 scoped_ptr<internal::OutputConfiguratorAnimation> 580 scoped_ptr<internal::OutputConfiguratorAnimation>
580 output_configurator_animation_; 581 output_configurator_animation_;
581 582
582 // Receives output change events and udpates the display manager. 583 // Receives output change events and udpates the display manager.
583 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; 584 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
584 #endif // defined(OS_CHROMEOS) 585 #endif // defined(OS_CHROMEOS)
585 586
586 scoped_ptr<message_center::MessageCenter> message_center_; 587 scoped_ptr<message_center::MessageCenter> message_center_;
587 588
588 CursorManager cursor_manager_; 589 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
590 // pointer to vend to test code.
591 AshNativeCursorManager* native_cursor_manager_;
592 views::corewm::CursorManager cursor_manager_;
589 593
590 ObserverList<ShellObserver> observers_; 594 ObserverList<ShellObserver> observers_;
591 595
592 // Used by ash/shell. 596 // Used by ash/shell.
593 content::BrowserContext* browser_context_; 597 content::BrowserContext* browser_context_;
594 598
595 // For testing only: simulate that a modal window is open 599 // For testing only: simulate that a modal window is open
596 bool simulate_modal_window_open_for_testing_; 600 bool simulate_modal_window_open_for_testing_;
597 601
598 DISALLOW_COPY_AND_ASSIGN(Shell); 602 DISALLOW_COPY_AND_ASSIGN(Shell);
599 }; 603 };
600 604
601 } // namespace ash 605 } // namespace ash
602 606
603 #endif // ASH_SHELL_H_ 607 #endif // ASH_SHELL_H_
OLDNEW
« 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