| 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 |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 return root_window_host_factory_.get(); | 455 return root_window_host_factory_.get(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 LauncherModel* launcher_model() { | 458 LauncherModel* launcher_model() { |
| 459 return launcher_model_.get(); | 459 return launcher_model_.get(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 // Returns the launcher delegate, creating if necesary. | 462 // Returns the launcher delegate, creating if necesary. |
| 463 LauncherDelegate* GetLauncherDelegate(); | 463 LauncherDelegate* GetLauncherDelegate(); |
| 464 | 464 |
| 465 void SetTouchHudProjectionEnabled(bool enabled); |
| 466 |
| 467 bool is_touch_hud_projection_enabled() const { |
| 468 return is_touch_hud_projection_enabled_; |
| 469 } |
| 470 |
| 465 private: | 471 private: |
| 466 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 472 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
| 467 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 473 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
| 468 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 474 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
| 469 friend class internal::RootWindowController; | 475 friend class internal::RootWindowController; |
| 470 friend class test::ShellTestApi; | 476 friend class test::ShellTestApi; |
| 471 friend class shell::WindowWatcher; | 477 friend class shell::WindowWatcher; |
| 472 | 478 |
| 473 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 479 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| 474 | 480 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 views::corewm::CursorManager cursor_manager_; | 603 views::corewm::CursorManager cursor_manager_; |
| 598 | 604 |
| 599 ObserverList<ShellObserver> observers_; | 605 ObserverList<ShellObserver> observers_; |
| 600 | 606 |
| 601 // Used by ash/shell. | 607 // Used by ash/shell. |
| 602 content::BrowserContext* browser_context_; | 608 content::BrowserContext* browser_context_; |
| 603 | 609 |
| 604 // For testing only: simulate that a modal window is open | 610 // For testing only: simulate that a modal window is open |
| 605 bool simulate_modal_window_open_for_testing_; | 611 bool simulate_modal_window_open_for_testing_; |
| 606 | 612 |
| 613 bool is_touch_hud_projection_enabled_; |
| 614 |
| 607 DISALLOW_COPY_AND_ASSIGN(Shell); | 615 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 608 }; | 616 }; |
| 609 | 617 |
| 610 } // namespace ash | 618 } // namespace ash |
| 611 | 619 |
| 612 #endif // ASH_SHELL_H_ | 620 #endif // ASH_SHELL_H_ |
| OLD | NEW |