Chromium Code Reviews| Index: ash/system/tray/system_tray_bubble.h |
| diff --git a/ash/system/tray/system_tray_bubble.h b/ash/system/tray/system_tray_bubble.h |
| index 4e4c519ff22e55e8bbf2520705517a12f46fb184..6d51a625f4117e15f6eca04bcd13649145030472 100644 |
| --- a/ash/system/tray/system_tray_bubble.h |
| +++ b/ash/system/tray/system_tray_bubble.h |
| @@ -61,6 +61,10 @@ class SystemTrayBubble { |
| // BUBBLE_TYPE_DEFAULT BubbleType. |
| void RecordVisibleRowMetrics(); |
| + // Update the bounds of the system tray bubble. Close the bubble if it |
| + // is hidden behind the shelf. |
|
xiyuan
2017/06/16 17:33:43
The comment seems not exactly correct since Update
minch1
2017/06/16 22:11:51
Done.
|
| + void UpdateBounds(const gfx::Rect& target_bounds, bool close_bubble); |
| + |
| private: |
| // Updates the bottom padding of the |bubble_view_| based on the |
| // |bubble_type_|. |
| @@ -78,6 +82,10 @@ class SystemTrayBubble { |
| int autoclose_delay_; |
| base::OneShotTimer autoclose_; |
| + // Used in maximize mode to make sure the system tray bubble only be shown in |
| + // work area. |
| + aura::Window* clipping_window_ = nullptr; |
| + |
| DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
| }; |