| 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_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/events/event_target.h" | 21 #include "ui/base/events/event_target.h" |
| 22 #include "ui/gfx/insets.h" | 22 #include "ui/gfx/insets.h" |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 } | 440 } |
| 441 #endif // defined(OS_CHROMEOS) | 441 #endif // defined(OS_CHROMEOS) |
| 442 | 442 |
| 443 RootWindowHostFactory* root_window_host_factory() { | 443 RootWindowHostFactory* root_window_host_factory() { |
| 444 return root_window_host_factory_.get(); | 444 return root_window_host_factory_.get(); |
| 445 } | 445 } |
| 446 | 446 |
| 447 // MessageCenter is a global list of currently displayed notifications. | 447 // MessageCenter is a global list of currently displayed notifications. |
| 448 message_center::MessageCenter* message_center(); | 448 message_center::MessageCenter* message_center(); |
| 449 | 449 |
| 450 LauncherModel* launcher_model() { |
| 451 return launcher_model_.get(); |
| 452 } |
| 453 |
| 454 // Returns the launcher delegate, creating if necesary. |
| 455 LauncherDelegate* GetLauncherDelegate(); |
| 456 |
| 450 private: | 457 private: |
| 451 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 458 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
| 452 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 459 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
| 453 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 460 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
| 454 friend class internal::RootWindowController; | 461 friend class internal::RootWindowController; |
| 455 friend class test::ShellTestApi; | 462 friend class test::ShellTestApi; |
| 456 friend class shell::WindowWatcher; | 463 friend class shell::WindowWatcher; |
| 457 | 464 |
| 458 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 465 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| 459 | 466 |
| 460 explicit Shell(ShellDelegate* delegate); | 467 explicit Shell(ShellDelegate* delegate); |
| 461 virtual ~Shell(); | 468 virtual ~Shell(); |
| 462 | 469 |
| 463 void Init(); | 470 void Init(); |
| 464 | 471 |
| 465 LauncherModel* launcher_model() { | |
| 466 return launcher_model_.get(); | |
| 467 } | |
| 468 | |
| 469 // Returns the launcher delegate, creating if necesary. | |
| 470 LauncherDelegate* GetLauncherDelegate(); | |
| 471 | |
| 472 // Initializes the root window and root window controller so that it | 472 // Initializes the root window and root window controller so that it |
| 473 // can host browser windows. | 473 // can host browser windows. |
| 474 void InitRootWindowController(internal::RootWindowController* root); | 474 void InitRootWindowController(internal::RootWindowController* root); |
| 475 | 475 |
| 476 // Initializes the layout managers and event filters specific for | 476 // Initializes the layout managers and event filters specific for |
| 477 // primary display. | 477 // primary display. |
| 478 void InitLayoutManagersForPrimaryDisplay( | 478 void InitLayoutManagersForPrimaryDisplay( |
| 479 internal::RootWindowController* root_window_controller); | 479 internal::RootWindowController* root_window_controller); |
| 480 | 480 |
| 481 // ash::internal::SystemModalContainerEventFilterDelegate overrides: | 481 // ash::internal::SystemModalContainerEventFilterDelegate overrides: |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 | 603 |
| 604 // For testing only: simulate that a modal window is open | 604 // For testing only: simulate that a modal window is open |
| 605 bool simulate_modal_window_open_for_testing_; | 605 bool simulate_modal_window_open_for_testing_; |
| 606 | 606 |
| 607 DISALLOW_COPY_AND_ASSIGN(Shell); | 607 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 608 }; | 608 }; |
| 609 | 609 |
| 610 } // namespace ash | 610 } // namespace ash |
| 611 | 611 |
| 612 #endif // ASH_SHELL_H_ | 612 #endif // ASH_SHELL_H_ |
| OLD | NEW |