| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 } | 433 } |
| 434 internal::DisplayErrorObserver* display_error_observer() { | 434 internal::DisplayErrorObserver* display_error_observer() { |
| 435 return display_error_observer_.get(); | 435 return display_error_observer_.get(); |
| 436 } | 436 } |
| 437 #endif // defined(OS_CHROMEOS) | 437 #endif // defined(OS_CHROMEOS) |
| 438 | 438 |
| 439 RootWindowHostFactory* root_window_host_factory() { | 439 RootWindowHostFactory* root_window_host_factory() { |
| 440 return root_window_host_factory_.get(); | 440 return root_window_host_factory_.get(); |
| 441 } | 441 } |
| 442 | 442 |
| 443 LauncherModel* launcher_model() { |
| 444 return launcher_model_.get(); |
| 445 } |
| 446 |
| 447 // Returns the launcher delegate, creating if necesary. |
| 448 LauncherDelegate* GetLauncherDelegate(); |
| 449 |
| 443 private: | 450 private: |
| 444 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 451 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
| 445 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 452 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
| 446 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 453 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
| 447 friend class internal::RootWindowController; | 454 friend class internal::RootWindowController; |
| 448 friend class test::ShellTestApi; | 455 friend class test::ShellTestApi; |
| 449 friend class shell::WindowWatcher; | 456 friend class shell::WindowWatcher; |
| 450 | 457 |
| 451 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 458 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| 452 | 459 |
| 453 explicit Shell(ShellDelegate* delegate); | 460 explicit Shell(ShellDelegate* delegate); |
| 454 virtual ~Shell(); | 461 virtual ~Shell(); |
| 455 | 462 |
| 456 void Init(); | 463 void Init(); |
| 457 | 464 |
| 458 LauncherModel* launcher_model() { | |
| 459 return launcher_model_.get(); | |
| 460 } | |
| 461 | |
| 462 // Returns the launcher delegate, creating if necesary. | |
| 463 LauncherDelegate* GetLauncherDelegate(); | |
| 464 | |
| 465 // Initializes the root window and root window controller so that it | 465 // Initializes the root window and root window controller so that it |
| 466 // can host browser windows. | 466 // can host browser windows. |
| 467 void InitRootWindowController(internal::RootWindowController* root); | 467 void InitRootWindowController(internal::RootWindowController* root); |
| 468 | 468 |
| 469 // Initializes the layout managers and event filters specific for | 469 // Initializes the layout managers and event filters specific for |
| 470 // primary display. | 470 // primary display. |
| 471 void InitLayoutManagersForPrimaryDisplay( | 471 void InitLayoutManagersForPrimaryDisplay( |
| 472 internal::RootWindowController* root_window_controller); | 472 internal::RootWindowController* root_window_controller); |
| 473 | 473 |
| 474 // ash::internal::SystemModalContainerEventFilterDelegate overrides: | 474 // ash::internal::SystemModalContainerEventFilterDelegate overrides: |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 | 594 |
| 595 // For testing only: simulate that a modal window is open | 595 // For testing only: simulate that a modal window is open |
| 596 bool simulate_modal_window_open_for_testing_; | 596 bool simulate_modal_window_open_for_testing_; |
| 597 | 597 |
| 598 DISALLOW_COPY_AND_ASSIGN(Shell); | 598 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 599 }; | 599 }; |
| 600 | 600 |
| 601 } // namespace ash | 601 } // namespace ash |
| 602 | 602 |
| 603 #endif // ASH_SHELL_H_ | 603 #endif // ASH_SHELL_H_ |
| OLD | NEW |