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 <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 #endif // defined(OS_CHROMEOS) | 520 #endif // defined(OS_CHROMEOS) |
521 | 521 |
522 ScreenPinningController* screen_pinning_controller() { | 522 ScreenPinningController* screen_pinning_controller() { |
523 return screen_pinning_controller_.get(); | 523 return screen_pinning_controller_.get(); |
524 } | 524 } |
525 | 525 |
526 ToastManager* toast_manager() { return toast_manager_.get(); } | 526 ToastManager* toast_manager() { return toast_manager_.get(); } |
527 | 527 |
528 GPUSupport* gpu_support() { return gpu_support_.get(); } | 528 GPUSupport* gpu_support() { return gpu_support_.get(); } |
529 | 529 |
530 // ash::SystemModalContainerEventFilterDelegate overrides: | |
oshima
2016/07/07 22:01:17
nit: // SystemModalContainerEventFilterDelegate:
| |
531 bool CanWindowReceiveEvents(aura::Window* window) override; | |
532 | |
530 private: | 533 private: |
531 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 534 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
532 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 535 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
533 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 536 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
534 friend class RootWindowController; | 537 friend class RootWindowController; |
535 friend class ScopedTargetRootWindow; | 538 friend class ScopedTargetRootWindow; |
536 friend class test::ShellTestApi; | 539 friend class test::ShellTestApi; |
537 friend class shell::WindowWatcher; | 540 friend class shell::WindowWatcher; |
538 | 541 |
539 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 542 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
540 | 543 |
541 // Takes ownership of |delegate|. | 544 // Takes ownership of |delegate|. |
542 Shell(ShellDelegate* delegate, base::SequencedWorkerPool* blocking_pool); | 545 Shell(ShellDelegate* delegate, base::SequencedWorkerPool* blocking_pool); |
543 ~Shell() override; | 546 ~Shell() override; |
544 | 547 |
545 void Init(const ShellInitParams& init_params); | 548 void Init(const ShellInitParams& init_params); |
546 | 549 |
547 // Initializes virtual keyboard controller. | 550 // Initializes virtual keyboard controller. |
548 void InitKeyboard(); | 551 void InitKeyboard(); |
549 | 552 |
550 // Initializes the root window so that it can host browser windows. | 553 // Initializes the root window so that it can host browser windows. |
551 void InitRootWindow(aura::Window* root_window); | 554 void InitRootWindow(aura::Window* root_window); |
552 | 555 |
553 // Prepares the shelf to be deleted. | 556 // Prepares the shelf to be deleted. |
554 void ShutdownShelf(); | 557 void ShutdownShelf(); |
555 | 558 |
556 // ash::SystemModalContainerEventFilterDelegate overrides: | |
557 bool CanWindowReceiveEvents(aura::Window* window) override; | |
558 | |
559 // Overridden from ui::EventTarget: | 559 // Overridden from ui::EventTarget: |
560 bool CanAcceptEvent(const ui::Event& event) override; | 560 bool CanAcceptEvent(const ui::Event& event) override; |
561 EventTarget* GetParentTarget() override; | 561 EventTarget* GetParentTarget() override; |
562 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; | 562 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; |
563 ui::EventTargeter* GetEventTargeter() override; | 563 ui::EventTargeter* GetEventTargeter() override; |
564 | 564 |
565 // Overridden from aura::client::ActivationChangeObserver: | 565 // Overridden from aura::client::ActivationChangeObserver: |
566 void OnWindowActivated( | 566 void OnWindowActivated( |
567 aura::client::ActivationChangeObserver::ActivationReason reason, | 567 aura::client::ActivationChangeObserver::ActivationReason reason, |
568 aura::Window* gained_active, | 568 aura::Window* gained_active, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
708 base::SequencedWorkerPool* blocking_pool_; | 708 base::SequencedWorkerPool* blocking_pool_; |
709 | 709 |
710 bool in_mus_ = false; | 710 bool in_mus_ = false; |
711 | 711 |
712 DISALLOW_COPY_AND_ASSIGN(Shell); | 712 DISALLOW_COPY_AND_ASSIGN(Shell); |
713 }; | 713 }; |
714 | 714 |
715 } // namespace ash | 715 } // namespace ash |
716 | 716 |
717 #endif // ASH_SHELL_H_ | 717 #endif // ASH_SHELL_H_ |
OLD | NEW |