| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual base::string16 GetAccessibleNameForTray() = 0; | 95 virtual base::string16 GetAccessibleNameForTray() = 0; |
| 96 | 96 |
| 97 // Called when the bubble is resized. | 97 // Called when the bubble is resized. |
| 98 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) {} | 98 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) {} |
| 99 | 99 |
| 100 // Hides the bubble associated with |bubble_view|. Called when the widget | 100 // Hides the bubble associated with |bubble_view|. Called when the widget |
| 101 // is closed. | 101 // is closed. |
| 102 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0; | 102 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0; |
| 103 | 103 |
| 104 // Called by the bubble wrapper when a click event occurs outside the bubble. | 104 // Called by the bubble wrapper when a click event occurs outside the bubble. |
| 105 // May close the bubble. Returns true if the event is handled. | 105 // May close the bubble. |
| 106 virtual bool ClickedOutsideBubble() = 0; | 106 virtual void ClickedOutsideBubble() = 0; |
| 107 | 107 |
| 108 // Sets |contents| as a child. | 108 // Sets |contents| as a child. |
| 109 void SetContents(views::View* contents); | 109 void SetContents(views::View* contents); |
| 110 | 110 |
| 111 // Creates and sets contents background to |background_|. | 111 // Creates and sets contents background to |background_|. |
| 112 void SetContentsBackground(); | 112 void SetContentsBackground(); |
| 113 | 113 |
| 114 // Sets whether the tray paints a background. Default is true, but is set to | 114 // Sets whether the tray paints a background. Default is true, but is set to |
| 115 // false if a window overlaps the shelf. | 115 // false if a window overlaps the shelf. |
| 116 void SetPaintsBackground(bool value, | 116 void SetPaintsBackground(bool value, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 193 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 194 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 194 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 196 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace ash | 199 } // namespace ash |
| 200 | 200 |
| 201 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 201 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |