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

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: 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
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 a29e7488342e8db5a0051d04595d986bb16eb7ec..d31cc468df90dc755980402ae3b34913c166270d 100644
--- a/ash/system/tray/system_tray_bubble.h
+++ b/ash/system/tray/system_tray_bubble.h
@@ -70,6 +70,16 @@ class SystemTrayBubble : public base::MessagePumpObserver,
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);
@@ -77,10 +87,7 @@ class SystemTrayBubble : public base::MessagePumpObserver,
// 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;

Powered by Google App Engine
This is Rietveld 408576698