| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 } | 406 } |
| 407 | 407 |
| 408 aura::client::ActivationClient* activation_client() { | 408 aura::client::ActivationClient* activation_client() { |
| 409 return activation_client_; | 409 return activation_client_; |
| 410 } | 410 } |
| 411 | 411 |
| 412 ShelfItemDelegateManager* shelf_item_delegate_manager() { | 412 ShelfItemDelegateManager* shelf_item_delegate_manager() { |
| 413 return shelf_item_delegate_manager_.get(); | 413 return shelf_item_delegate_manager_.get(); |
| 414 } | 414 } |
| 415 | 415 |
| 416 ScreenAsh* screen() { return screen_; } | |
| 417 | |
| 418 // Force the shelf to query for it's current visibility state. | 416 // Force the shelf to query for it's current visibility state. |
| 419 void UpdateShelfVisibility(); | 417 void UpdateShelfVisibility(); |
| 420 | 418 |
| 421 // TODO(oshima): Define an interface to access shelf/launcher | 419 // TODO(oshima): Define an interface to access shelf/launcher |
| 422 // state, or just use Launcher. | 420 // state, or just use Launcher. |
| 423 | 421 |
| 424 // Sets/gets the shelf auto-hide behavior on |root_window|. | 422 // Sets/gets the shelf auto-hide behavior on |root_window|. |
| 425 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, | 423 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, |
| 426 aura::Window* root_window); | 424 aura::Window* root_window); |
| 427 ShelfAutoHideBehavior GetShelfAutoHideBehavior( | 425 ShelfAutoHideBehavior GetShelfAutoHideBehavior( |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Overridden from aura::client::ActivationChangeObserver: | 569 // Overridden from aura::client::ActivationChangeObserver: |
| 572 virtual void OnWindowActivated(aura::Window* gained_active, | 570 virtual void OnWindowActivated(aura::Window* gained_active, |
| 573 aura::Window* lost_active) OVERRIDE; | 571 aura::Window* lost_active) OVERRIDE; |
| 574 | 572 |
| 575 static Shell* instance_; | 573 static Shell* instance_; |
| 576 | 574 |
| 577 // If set before the Shell is initialized, the mouse cursor will be hidden | 575 // If set before the Shell is initialized, the mouse cursor will be hidden |
| 578 // when the screen is initially created. | 576 // when the screen is initially created. |
| 579 static bool initially_hide_cursor_; | 577 static bool initially_hide_cursor_; |
| 580 | 578 |
| 581 ScreenAsh* screen_; | |
| 582 | |
| 583 // When no explicit target display/RootWindow is given, new windows are | 579 // When no explicit target display/RootWindow is given, new windows are |
| 584 // created on |scoped_target_root_window_| , unless NULL in | 580 // created on |scoped_target_root_window_| , unless NULL in |
| 585 // which case they are created on |target_root_window_|. | 581 // which case they are created on |target_root_window_|. |
| 586 // |target_root_window_| never becomes NULL during the session. | 582 // |target_root_window_| never becomes NULL during the session. |
| 587 aura::Window* target_root_window_; | 583 aura::Window* target_root_window_; |
| 588 aura::Window* scoped_target_root_window_; | 584 aura::Window* scoped_target_root_window_; |
| 589 | 585 |
| 590 // The CompoundEventFilter owned by aura::Env object. | 586 // The CompoundEventFilter owned by aura::Env object. |
| 591 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_; | 587 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_; |
| 592 | 588 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 bool simulate_modal_window_open_for_testing_; | 702 bool simulate_modal_window_open_for_testing_; |
| 707 | 703 |
| 708 bool is_touch_hud_projection_enabled_; | 704 bool is_touch_hud_projection_enabled_; |
| 709 | 705 |
| 710 DISALLOW_COPY_AND_ASSIGN(Shell); | 706 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 711 }; | 707 }; |
| 712 | 708 |
| 713 } // namespace ash | 709 } // namespace ash |
| 714 | 710 |
| 715 #endif // ASH_SHELL_H_ | 711 #endif // ASH_SHELL_H_ |
| OLD | NEW |