| OLD | NEW |
| 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/shelf_types.h" | 12 #include "ash/shelf/shelf_types.h" |
| 13 #include "ash/system/user/login_status.h" | 13 #include "ash/system/user/login_status.h" |
| 14 #include "ash/wm/system_modal_container_event_filter_delegate.h" | 14 #include "ash/wm/system_modal_container_event_filter_delegate.h" |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
| 20 #include "ui/aura/client/activation_change_observer.h" | 20 #include "ui/aura/client/activation_change_observer.h" |
| 21 #include "ui/base/ui_base_types.h" | 21 #include "ui/base/ui_base_types.h" |
| 22 #include "ui/events/event_target.h" | 22 #include "ui/events/event_target.h" |
| 23 #include "ui/gfx/insets.h" | 23 #include "ui/gfx/insets.h" |
| 24 #include "ui/gfx/screen.h" | 24 #include "ui/gfx/screen.h" |
| 25 #include "ui/gfx/size.h" | 25 #include "ui/gfx/size.h" |
| 26 #include "ui/views/corewm/cursor_manager.h" | 26 #include "ui/views/corewm/cursor_manager.h" |
| 27 | 27 |
| 28 class CommandLine; | 28 class CommandLine; |
| 29 | 29 |
| 30 namespace app_list { |
| 31 class AppListView; |
| 32 } |
| 30 namespace aura { | 33 namespace aura { |
| 31 class EventFilter; | 34 class EventFilter; |
| 32 class RootWindow; | 35 class RootWindow; |
| 33 class Window; | 36 class Window; |
| 34 namespace client { | 37 namespace client { |
| 35 class ActivationClient; | 38 class ActivationClient; |
| 36 class FocusClient; | 39 class FocusClient; |
| 37 class UserActionClient; | 40 class UserActionClient; |
| 38 } | 41 } |
| 39 } | 42 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 74 } |
| 72 | 75 |
| 73 namespace ash { | 76 namespace ash { |
| 74 | 77 |
| 75 class AcceleratorController; | 78 class AcceleratorController; |
| 76 class AshNativeCursorManager; | 79 class AshNativeCursorManager; |
| 77 class AutoclickController; | 80 class AutoclickController; |
| 78 class CapsLockDelegate; | 81 class CapsLockDelegate; |
| 79 class DesktopBackgroundController; | 82 class DesktopBackgroundController; |
| 80 class DisplayController; | 83 class DisplayController; |
| 84 class FirstRunHelper; |
| 81 class HighContrastController; | 85 class HighContrastController; |
| 82 class Launcher; | 86 class Launcher; |
| 83 class LauncherDelegate; | 87 class LauncherDelegate; |
| 84 class LauncherItemDelegate; | 88 class LauncherItemDelegate; |
| 85 class LauncherItemDelegateManager; | 89 class LauncherItemDelegateManager; |
| 86 class LauncherModel; | 90 class LauncherModel; |
| 87 class MagnificationController; | 91 class MagnificationController; |
| 88 class MruWindowTracker; | 92 class MruWindowTracker; |
| 89 class NestedDispatcherController; | 93 class NestedDispatcherController; |
| 90 class PartialMagnificationController; | 94 class PartialMagnificationController; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // list should be shown. If this is NULL, the active root window | 231 // list should be shown. If this is NULL, the active root window |
| 228 // will be used. | 232 // will be used. |
| 229 void ToggleAppList(aura::Window* anchor); | 233 void ToggleAppList(aura::Window* anchor); |
| 230 | 234 |
| 231 // Returns app list target visibility. | 235 // Returns app list target visibility. |
| 232 bool GetAppListTargetVisibility() const; | 236 bool GetAppListTargetVisibility() const; |
| 233 | 237 |
| 234 // Returns app list window or NULL if it is not visible. | 238 // Returns app list window or NULL if it is not visible. |
| 235 aura::Window* GetAppListWindow(); | 239 aura::Window* GetAppListWindow(); |
| 236 | 240 |
| 241 // Returns app list view or NULL if it is not visible. |
| 242 app_list::AppListView* GetAppListView(); |
| 243 |
| 237 // Returns true if a system-modal dialog window is currently open. | 244 // Returns true if a system-modal dialog window is currently open. |
| 238 bool IsSystemModalWindowOpen() const; | 245 bool IsSystemModalWindowOpen() const; |
| 239 | 246 |
| 240 // For testing only: set simulation that a modal window is open | 247 // For testing only: set simulation that a modal window is open |
| 241 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 248 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 242 simulate_modal_window_open_for_testing_ = modal_window_open; | 249 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 243 } | 250 } |
| 244 | 251 |
| 245 // Creates a default views::NonClientFrameView for use by windows in the | 252 // Creates a default views::NonClientFrameView for use by windows in the |
| 246 // Ash environment. | 253 // Ash environment. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 496 |
| 490 // Returns the launcher delegate, creating if necesary. | 497 // Returns the launcher delegate, creating if necesary. |
| 491 LauncherDelegate* GetLauncherDelegate(); | 498 LauncherDelegate* GetLauncherDelegate(); |
| 492 | 499 |
| 493 void SetTouchHudProjectionEnabled(bool enabled); | 500 void SetTouchHudProjectionEnabled(bool enabled); |
| 494 | 501 |
| 495 bool is_touch_hud_projection_enabled() const { | 502 bool is_touch_hud_projection_enabled() const { |
| 496 return is_touch_hud_projection_enabled_; | 503 return is_touch_hud_projection_enabled_; |
| 497 } | 504 } |
| 498 | 505 |
| 506 #if defined(OS_CHROMEOS) |
| 507 // Creates instance of FirstRunHelper. Caller is responsible for deleting |
| 508 // returned object. |
| 509 ash::FirstRunHelper* CreateFirstRunHelper(); |
| 510 #endif // defined(OS_CHROMEOS) |
| 511 |
| 499 private: | 512 private: |
| 500 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 513 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
| 501 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 514 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
| 502 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 515 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
| 503 friend class internal::RootWindowController; | 516 friend class internal::RootWindowController; |
| 504 friend class internal::ScopedTargetRootWindow; | 517 friend class internal::ScopedTargetRootWindow; |
| 505 friend class test::ShellTestApi; | 518 friend class test::ShellTestApi; |
| 506 friend class shell::WindowWatcher; | 519 friend class shell::WindowWatcher; |
| 507 | 520 |
| 508 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 521 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 bool simulate_modal_window_open_for_testing_; | 670 bool simulate_modal_window_open_for_testing_; |
| 658 | 671 |
| 659 bool is_touch_hud_projection_enabled_; | 672 bool is_touch_hud_projection_enabled_; |
| 660 | 673 |
| 661 DISALLOW_COPY_AND_ASSIGN(Shell); | 674 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 662 }; | 675 }; |
| 663 | 676 |
| 664 } // namespace ash | 677 } // namespace ash |
| 665 | 678 |
| 666 #endif // ASH_SHELL_H_ | 679 #endif // ASH_SHELL_H_ |
| OLD | NEW |