| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // TODO(oshima): Define an interface to access shelf/launcher | 456 // TODO(oshima): Define an interface to access shelf/launcher |
| 457 // state, or just use Launcher. | 457 // state, or just use Launcher. |
| 458 | 458 |
| 459 // Sets/gets the shelf auto-hide behavior on |root_window|. | 459 // Sets/gets the shelf auto-hide behavior on |root_window|. |
| 460 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, | 460 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, |
| 461 aura::Window* root_window); | 461 aura::Window* root_window); |
| 462 ShelfAutoHideBehavior GetShelfAutoHideBehavior( | 462 ShelfAutoHideBehavior GetShelfAutoHideBehavior( |
| 463 aura::Window* root_window) const; | 463 aura::Window* root_window) const; |
| 464 | 464 |
| 465 // Sets/gets shelf's alignment on |root_window|. | 465 // Sets/gets shelf's alignment on |root_window|. |
| 466 void SetShelfAlignment(ShelfAlignment alignment, | 466 void SetShelfAlignment(ShelfAlignment alignment, aura::Window* root_window); |
| 467 aura::Window* root_window); | 467 ShelfAlignment GetShelfAlignment(const aura::Window* root_window) const; |
| 468 ShelfAlignment GetShelfAlignment(const aura::Window* root_window); | 468 |
| 469 // Called when the alignment for a shelf changes. |
| 470 void OnShelfAlignmentChanged(aura::Window* root_window); |
| 469 | 471 |
| 470 // Notifies |observers_| when entering or exiting fullscreen mode in | 472 // Notifies |observers_| when entering or exiting fullscreen mode in |
| 471 // |root_window|. | 473 // |root_window|. |
| 472 void NotifyFullscreenStateChange(bool is_fullscreen, | 474 void NotifyFullscreenStateChange(bool is_fullscreen, |
| 473 aura::Window* root_window); | 475 aura::Window* root_window); |
| 474 | 476 |
| 475 // Creates a modal background (a partially-opaque fullscreen window) | 477 // Creates a modal background (a partially-opaque fullscreen window) |
| 476 // on all displays for |window|. | 478 // on all displays for |window|. |
| 477 void CreateModalBackground(aura::Window* window); | 479 void CreateModalBackground(aura::Window* window); |
| 478 | 480 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 bool in_mus_ = false; | 772 bool in_mus_ = false; |
| 771 | 773 |
| 772 scoped_ptr<KeyboardUI> keyboard_ui_; | 774 scoped_ptr<KeyboardUI> keyboard_ui_; |
| 773 | 775 |
| 774 DISALLOW_COPY_AND_ASSIGN(Shell); | 776 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 775 }; | 777 }; |
| 776 | 778 |
| 777 } // namespace ash | 779 } // namespace ash |
| 778 | 780 |
| 779 #endif // ASH_SHELL_H_ | 781 #endif // ASH_SHELL_H_ |
| OLD | NEW |