Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ash/system/tray/system_tray_bubble.h

Issue 2930123002: Tablet WM : Swiping on system tray bubble. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698