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_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 views::TrayBubbleView::AnchorType anchor_type, | 118 views::TrayBubbleView::AnchorType anchor_type, |
119 views::TrayBubbleView::AnchorAlignment anchor_alignment) const; | 119 views::TrayBubbleView::AnchorAlignment anchor_alignment) const; |
120 | 120 |
121 // Returns the bubble anchor alignment based on |shelf_alignment_|. | 121 // Returns the bubble anchor alignment based on |shelf_alignment_|. |
122 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() const; | 122 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() const; |
123 | 123 |
124 // Forces the background to be drawn active if set to true. | 124 // Forces the background to be drawn active if set to true. |
125 void SetDrawBackgroundAsActive(bool visible); | 125 void SetDrawBackgroundAsActive(bool visible); |
126 | 126 |
127 // Returns true when the the background was overridden to be drawn as active. | 127 // Returns true when the the background was overridden to be drawn as active. |
128 bool draw_background_as_active() const {return draw_background_as_active_; } | 128 bool draw_background_as_active() const { return draw_background_as_active_; } |
129 | 129 |
130 TrayContainer* tray_container() const { return tray_container_; } | 130 TrayContainer* tray_container() const { return tray_container_; } |
131 ShelfAlignment shelf_alignment() const { return shelf_alignment_; } | 131 ShelfAlignment shelf_alignment() const { return shelf_alignment_; } |
132 TrayEventFilter* tray_event_filter() { return tray_event_filter_.get(); } | 132 TrayEventFilter* tray_event_filter() { return tray_event_filter_.get(); } |
133 WmShelf* shelf() { return wm_shelf_; } | 133 WmShelf* shelf() { return wm_shelf_; } |
134 | 134 |
135 // Updates the arrow visibility based on the launcher visibility. | 135 // Updates the arrow visibility based on the launcher visibility. |
136 void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view); | 136 void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view); |
137 | 137 |
138 private: | 138 private: |
(...skipping 30 matching lines...) Expand all Loading... |
169 | 169 |
170 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 170 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
171 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 171 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 173 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace ash | 176 } // namespace ash |
177 | 177 |
178 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 178 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
OLD | NEW |