| 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_SHELF_SHELF_WIDGET_H_ | 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_ |
| 6 #define ASH_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_SHELF_SHELF_WIDGET_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/background_animator.h" | 9 #include "ash/shelf/background_animator.h" |
| 10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Returns if shelf alignment option is enabled, and the user is able | 37 // Returns if shelf alignment option is enabled, and the user is able |
| 38 // to adjust the alignment (guest and supervised mode users cannot for | 38 // to adjust the alignment (guest and supervised mode users cannot for |
| 39 // example). | 39 // example). |
| 40 static bool ShelfAlignmentAllowed(); | 40 static bool ShelfAlignmentAllowed(); |
| 41 | 41 |
| 42 void SetAlignment(ShelfAlignment alignmnet); | 42 void SetAlignment(ShelfAlignment alignmnet); |
| 43 ShelfAlignment GetAlignment() const; | 43 ShelfAlignment GetAlignment() const; |
| 44 | 44 |
| 45 // Sets the shelf's background type. | 45 // Sets the shelf's background type. |
| 46 void SetPaintsBackground( | 46 void SetPaintsBackground(ShelfBackgroundType background_type, |
| 47 ShelfBackgroundType background_type, | 47 BackgroundAnimatorChangeType change_type); |
| 48 internal::BackgroundAnimator::ChangeType change_type); | |
| 49 ShelfBackgroundType GetBackgroundType() const; | 48 ShelfBackgroundType GetBackgroundType() const; |
| 50 | 49 |
| 51 // Causes shelf items to be slightly dimmed (eg when a window is maximized). | 50 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). |
| 52 void SetDimsShelf(bool dimming); | 51 void SetDimsShelf(bool dimming); |
| 53 bool GetDimsShelf() const; | 52 bool GetDimsShelf() const; |
| 54 | 53 |
| 55 internal::ShelfLayoutManager* shelf_layout_manager() { | 54 internal::ShelfLayoutManager* shelf_layout_manager() { |
| 56 return shelf_layout_manager_; | 55 return shelf_layout_manager_; |
| 57 } | 56 } |
| 58 Launcher* launcher() const { return launcher_.get(); } | 57 Launcher* launcher() const { return launcher_.get(); } |
| 59 internal::StatusAreaWidget* status_area_widget() const { | 58 internal::StatusAreaWidget* status_area_widget() const { |
| 60 return status_area_widget_; | 59 return status_area_widget_; |
| 61 } | 60 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // during CloseChildWindows of the associated RootWindowController. | 107 // during CloseChildWindows of the associated RootWindowController. |
| 109 DelegateView* delegate_view_; | 108 DelegateView* delegate_view_; |
| 110 internal::BackgroundAnimator background_animator_; | 109 internal::BackgroundAnimator background_animator_; |
| 111 bool activating_as_fallback_; | 110 bool activating_as_fallback_; |
| 112 aura::Window* window_container_; | 111 aura::Window* window_container_; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace ash | 114 } // namespace ash |
| 116 | 115 |
| 117 #endif // ASH_SHELF_SHELF_WIDGET_H_ | 116 #endif // ASH_SHELF_SHELF_WIDGET_H_ |
| OLD | NEW |