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

Unified Diff: ash/common/system/tray/tray_background_view.h

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)
Patch Set: rebase and update bug link Created 4 years, 1 month 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/common/system/tray/tray_background_view.h
diff --git a/ash/common/system/tray/tray_background_view.h b/ash/common/system/tray/tray_background_view.h
index b642ca692d688ae12e4acb071bea3796d18a2891..dca7322026239f664eeb32fda213bdafe68931f3 100644
--- a/ash/common/system/tray/tray_background_view.h
+++ b/ash/common/system/tray/tray_background_view.h
@@ -108,12 +108,6 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
// Creates and sets contents background to |background_|.
void SetContentsBackground();
- // Returns the anchor rect for the bubble.
- gfx::Rect GetBubbleAnchorRect(
- views::Widget* anchor_widget,
- views::TrayBubbleView::AnchorType anchor_type,
- views::TrayBubbleView::AnchorAlignment anchor_alignment) const;
-
// Returns the bubble anchor alignment based on |shelf_alignment_|.
views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() const;
@@ -137,6 +131,13 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
// Updates the visibility of this tray's separator.
void SetSeparatorVisibility(bool is_show);
+ // Gets the anchor for bubbles, which is tray_container().
+ views::View* GetBubbleAnchor() const;
+
+ // Gets additional insets for positioning bubbles relative to
+ // tray_container().
+ gfx::Insets GetBubbleAnchorInsets() const;
+
private:
class TrayWidgetObserver;

Powered by Google App Engine
This is Rietveld 408576698