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

Unified Diff: ash/system/tray/system_tray_bubble.h

Issue 10381132: Allow Uber Tray popup pointing to the related tray item view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & offset position fix Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_bubble.h
diff --git a/ash/system/tray/system_tray_bubble.h b/ash/system/tray/system_tray_bubble.h
index 2d0588cd3c6dcfd2f82f8b2ec1f14e899133d94f..c80601fb31ad9fcc0e32ec336b33dc0e9a7c4248 100644
--- a/ash/system/tray/system_tray_bubble.h
+++ b/ash/system/tray/system_tray_bubble.h
@@ -68,6 +68,16 @@ class SystemTrayBubble : public views::Widget::Observer {
ANCHOR_TYPE_BUBBLE
};
+ struct InitParams {
+ InitParams(AnchorType anchor_type);
+
+ views::View* anchor;
+ AnchorType anchor_type;
+ bool can_activate;
+ ash::user::LoginStatus login_status;
+ int arrow_offset;
+ };
+
SystemTrayBubble(ash::SystemTray* tray,
const std::vector<ash::SystemTrayItem*>& items,
BubbleType bubble_type);
@@ -79,10 +89,7 @@ class SystemTrayBubble : public views::Widget::Observer {
// Creates |bubble_view_| and a child views for each member of |items_|.
// Also creates |bubble_widget_| and sets up animations.
- void InitView(views::View* anchor,
- AnchorType anchor_type,
- bool can_activate,
- ash::user::LoginStatus login_status);
+ void InitView(const InitParams& init_params);
gfx::Rect GetAnchorRect() const;
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698