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

Side by Side Diff: ash/system/tray/system_tray.h

Issue 1918183003: mash: Close the system tray bubble on click outside its bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointerwatcher
Patch Set: rebase Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « ash/system/overview/overview_button_tray.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SYSTEM_TRAY_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // Returns true if the bubble exists. 123 // Returns true if the bubble exists.
124 bool CloseNotificationBubbleForTest() const; 124 bool CloseNotificationBubbleForTest() const;
125 125
126 // Overridden from TrayBackgroundView. 126 // Overridden from TrayBackgroundView.
127 void SetShelfAlignment(wm::ShelfAlignment alignment) override; 127 void SetShelfAlignment(wm::ShelfAlignment alignment) override;
128 void AnchorUpdated() override; 128 void AnchorUpdated() override;
129 base::string16 GetAccessibleNameForTray() override; 129 base::string16 GetAccessibleNameForTray() override;
130 void BubbleResized(const views::TrayBubbleView* bubble_view) override; 130 void BubbleResized(const views::TrayBubbleView* bubble_view) override;
131 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; 131 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
132 bool ClickedOutsideBubble() override; 132 void ClickedOutsideBubble() override;
133 133
134 // Overridden from message_center::TrayBubbleView::Delegate. 134 // Overridden from message_center::TrayBubbleView::Delegate.
135 void BubbleViewDestroyed() override; 135 void BubbleViewDestroyed() override;
136 void OnMouseEnteredView() override; 136 void OnMouseEnteredView() override;
137 void OnMouseExitedView() override; 137 void OnMouseExitedView() override;
138 base::string16 GetAccessibleNameForBubble() override; 138 base::string16 GetAccessibleNameForBubble() override;
139 gfx::Rect GetAnchorRect(views::Widget* anchor_widget, 139 gfx::Rect GetAnchorRect(views::Widget* anchor_widget,
140 AnchorType anchor_type, 140 AnchorType anchor_type,
141 AnchorAlignment anchor_alignment) const override; 141 AnchorAlignment anchor_alignment) const override;
142 void HideBubble(const views::TrayBubbleView* bubble_view) override; 142 void HideBubble(const views::TrayBubbleView* bubble_view) override;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // A reference to the Screen share and capture item. 242 // A reference to the Screen share and capture item.
243 ScreenTrayItem* screen_capture_tray_item_; // not owned 243 ScreenTrayItem* screen_capture_tray_item_; // not owned
244 ScreenTrayItem* screen_share_tray_item_; // not owned 244 ScreenTrayItem* screen_share_tray_item_; // not owned
245 245
246 DISALLOW_COPY_AND_ASSIGN(SystemTray); 246 DISALLOW_COPY_AND_ASSIGN(SystemTray);
247 }; 247 };
248 248
249 } // namespace ash 249 } // namespace ash
250 250
251 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 251 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/overview/overview_button_tray.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698