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

Unified Diff: ui/views/bubble/tray_bubble_view.h

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address sky/msw comments + rebase. Created 7 years, 11 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 | « ui/message_center/message_center_tray_unittest.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/tray_bubble_view.h
diff --git a/ui/views/bubble/tray_bubble_view.h b/ui/views/bubble/tray_bubble_view.h
index 218d885ce8bc9a1ca2943380313c71c4c60c1ab7..353473a52336d4f346f14bf8fa2adebd661f864d 100644
--- a/ui/views/bubble/tray_bubble_view.h
+++ b/ui/views/bubble/tray_bubble_view.h
@@ -32,11 +32,16 @@ class TrayBubbleContentMask;
class VIEWS_EXPORT TrayBubbleView : public views::BubbleDelegateView {
public:
+ // AnchorType differentiates between bubbles that are anchored on a tray
+ // element (ANCHOR_TYPE_TRAY) and display an arrow, or that are floating on
+ // the screen away from the tray (ANCHOR_TYPE_BUBBLE).
enum AnchorType {
ANCHOR_TYPE_TRAY,
- ANCHOR_TYPE_BUBBLE
+ ANCHOR_TYPE_BUBBLE,
};
+ // AnchorAlignment determines to which side of the anchor the bubble will
+ // align itself.
enum AnchorAlignment {
ANCHOR_ALIGNMENT_BOTTOM,
ANCHOR_ALIGNMENT_LEFT,
@@ -97,6 +102,7 @@ class VIEWS_EXPORT TrayBubbleView : public views::BubbleDelegateView {
int arrow_offset;
bool hide_arrow; // hides arrow, but may still use "arrow geometry"
views::BubbleBorder::Shadow shadow;
+ views::BubbleBorder::BubbleAlignment arrow_alignment;
};
// Constructs and returns a TrayBubbleView. init_params may be modified.
« no previous file with comments | « ui/message_center/message_center_tray_unittest.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698