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_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/launcher/background_animator.h" | 9 #include "ash/launcher/background_animator.h" |
10 #include "ash/system/tray/tray_views.h" | 10 #include "ash/system/tray/tray_views.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 | 92 |
93 // Sets whether the tray paints a background. Default is true, but is set to | 93 // Sets whether the tray paints a background. Default is true, but is set to |
94 // false if a window overlaps the shelf. | 94 // false if a window overlaps the shelf. |
95 void SetPaintsBackground( | 95 void SetPaintsBackground( |
96 bool value, | 96 bool value, |
97 internal::BackgroundAnimator::ChangeType change_type); | 97 internal::BackgroundAnimator::ChangeType change_type); |
98 | 98 |
99 StatusAreaWidget* status_area_widget() { | 99 StatusAreaWidget* status_area_widget() { |
100 return status_area_widget_; | 100 return status_area_widget_; |
101 } | 101 } |
102 StatusAreaWidget* status_area_widget() const { | |
oshima
2012/10/09 00:26:14
const StatusAreaWidget*
scottmg
2012/10/09 04:30:47
Done.
| |
103 return status_area_widget_; | |
104 } | |
102 TrayContainer* tray_container() const { return tray_container_; } | 105 TrayContainer* tray_container() const { return tray_container_; } |
103 ShelfAlignment shelf_alignment() const { return shelf_alignment_; } | 106 ShelfAlignment shelf_alignment() const { return shelf_alignment_; } |
104 | 107 |
105 private: | 108 private: |
106 friend class TrayLayerAnimationObserver; | 109 friend class TrayLayerAnimationObserver; |
107 | 110 |
108 // Called from Initialize after all status area trays have been created. | 111 // Called from Initialize after all status area trays have been created. |
109 // Sets the border based on the position of the view. | 112 // Sets the border based on the position of the view. |
110 void SetBorder(); | 113 void SetBorder(); |
111 | 114 |
(...skipping 14 matching lines...) Expand all Loading... | |
126 scoped_ptr<internal::TrayLayerAnimationObserver> | 129 scoped_ptr<internal::TrayLayerAnimationObserver> |
127 layer_animation_observer_; | 130 layer_animation_observer_; |
128 | 131 |
129 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 132 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
130 }; | 133 }; |
131 | 134 |
132 } // namespace internal | 135 } // namespace internal |
133 } // namespace ash | 136 } // namespace ash |
134 | 137 |
135 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 138 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
OLD | NEW |