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

Side by Side Diff: ash/system/tray/tray_background_view.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/tray/system_tray.cc ('k') | ash/system/tray/tray_event_filter.h » ('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_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
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
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_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698