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