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

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

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)
Patch Set: rebase 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
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/common/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5b6a5a20136835a504f66834bf2b46095fd15b56..4a72dda62f34765ed11392e2b5292618367841dd 100644
--- a/ash/common/system/tray/tray_background_view.h
+++ b/ash/common/system/tray/tray_background_view.h
@@ -111,12 +111,6 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
// is in the active state.
void SetContentsBackground(bool draws_active);
- // 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;
+
protected:
// ActionableView:
std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/common/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698