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

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

Issue 2092473002: Convert TrayBubbleView to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@traybubblewrapper
Patch Set: review feedback Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/tray_background_view.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_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Called by the bubble wrapper when a click event occurs outside the bubble. 106 // Called by the bubble wrapper when a click event occurs outside the bubble.
107 // May close the bubble. 107 // May close the bubble.
108 virtual void ClickedOutsideBubble() = 0; 108 virtual void ClickedOutsideBubble() = 0;
109 109
110 // Sets |contents| as a child. 110 // Sets |contents| as a child.
111 void SetContents(views::View* contents); 111 void SetContents(views::View* contents);
112 112
113 // Creates and sets contents background to |background_|. 113 // Creates and sets contents background to |background_|.
114 void SetContentsBackground(); 114 void SetContentsBackground();
115 115
116 // Returns the window hosting the bubble.
117 aura::Window* GetBubbleWindowContainer() const;
118
119 // Returns the anchor rect for the bubble. 116 // Returns the anchor rect for the bubble.
120 gfx::Rect GetBubbleAnchorRect( 117 gfx::Rect GetBubbleAnchorRect(
121 views::Widget* anchor_widget, 118 views::Widget* anchor_widget,
122 views::TrayBubbleView::AnchorType anchor_type, 119 views::TrayBubbleView::AnchorType anchor_type,
123 views::TrayBubbleView::AnchorAlignment anchor_alignment) const; 120 views::TrayBubbleView::AnchorAlignment anchor_alignment) const;
124 121
125 // Returns the bubble anchor alignment based on |shelf_alignment_|. 122 // Returns the bubble anchor alignment based on |shelf_alignment_|.
126 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() const; 123 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() const;
127 124
128 // Forces the background to be drawn active if set to true. 125 // Forces the background to be drawn active if set to true.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 177
181 std::unique_ptr<TrayWidgetObserver> widget_observer_; 178 std::unique_ptr<TrayWidgetObserver> widget_observer_;
182 std::unique_ptr<TrayEventFilter> tray_event_filter_; 179 std::unique_ptr<TrayEventFilter> tray_event_filter_;
183 180
184 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 181 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
185 }; 182 };
186 183
187 } // namespace ash 184 } // namespace ash
188 185
189 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 186 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698