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/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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual bool ClickedOutsideBubble() = 0; | 101 virtual bool ClickedOutsideBubble() = 0; |
102 | 102 |
103 // Sets |contents| as a child. | 103 // Sets |contents| as a child. |
104 void SetContents(views::View* contents); | 104 void SetContents(views::View* contents); |
105 | 105 |
106 // Creates and sets contents background to |background_|. | 106 // Creates and sets contents background to |background_|. |
107 void SetContentsBackground(); | 107 void SetContentsBackground(); |
108 | 108 |
109 // Sets whether the tray paints a background. Default is true, but is set to | 109 // Sets whether the tray paints a background. Default is true, but is set to |
110 // false if a window overlaps the shelf. | 110 // false if a window overlaps the shelf. |
111 void SetPaintsBackground( | 111 void SetPaintsBackground(bool value, |
112 bool value, | 112 BackgroundAnimatorChangeType change_type); |
113 internal::BackgroundAnimator::ChangeType change_type); | |
114 | 113 |
115 // Initializes animations for the bubble. | 114 // Initializes animations for the bubble. |
116 void InitializeBubbleAnimations(views::Widget* bubble_widget); | 115 void InitializeBubbleAnimations(views::Widget* bubble_widget); |
117 | 116 |
118 // Returns the window hosting the bubble. | 117 // Returns the window hosting the bubble. |
119 aura::Window* GetBubbleWindowContainer() const; | 118 aura::Window* GetBubbleWindowContainer() const; |
120 | 119 |
121 // Returns the anchor rect for the bubble. | 120 // Returns the anchor rect for the bubble. |
122 gfx::Rect GetBubbleAnchorRect( | 121 gfx::Rect GetBubbleAnchorRect( |
123 views::Widget* anchor_widget, | 122 views::Widget* anchor_widget, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 scoped_ptr<TrayWidgetObserver> widget_observer_; | 180 scoped_ptr<TrayWidgetObserver> widget_observer_; |
182 scoped_ptr<TrayEventFilter> tray_event_filter_; | 181 scoped_ptr<TrayEventFilter> tray_event_filter_; |
183 | 182 |
184 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 183 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
185 }; | 184 }; |
186 | 185 |
187 } // namespace internal | 186 } // namespace internal |
188 } // namespace ash | 187 } // namespace ash |
189 | 188 |
190 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 189 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
OLD | NEW |