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..8633202892505fc910ac57e1aa85bf662d1d1876 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 |
+ // |close_bubble| is set. |
+ 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. |
+ std::unique_ptr<aura::Window> clipping_window_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
}; |