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

Side by Side Diff: ash/system/tray/tray_bubble_view.h

Issue 10833041: Change web notifications to show at the top of the list, clean up layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
7 7
8 #include "ui/aura/event_filter.h" 8 #include "ui/aura/event_filter.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 TrayBubbleView(views::View* anchor, 61 TrayBubbleView(views::View* anchor,
62 views::BubbleBorder::ArrowLocation arrow_location, 62 views::BubbleBorder::ArrowLocation arrow_location,
63 Host* host, 63 Host* host,
64 bool can_activate, 64 bool can_activate,
65 int bubble_width); 65 int bubble_width);
66 virtual ~TrayBubbleView(); 66 virtual ~TrayBubbleView();
67 67
68 // Creates a bubble border with the specified arrow offset. 68 // Creates a bubble border with the specified arrow offset.
69 void SetBubbleBorder(int arrow_offset); 69 void SetBubbleBorder(int arrow_offset);
70 70
71 // Called whenever the bubble anchor location may have moved. 71 // Called whenever the bubble size or location may have moved.
72 void UpdateAnchor(); 72 void UpdateBubble();
73 73
74 // Sets the maximum bubble height and resizes the bubble. 74 // Sets the maximum bubble height and resizes the bubble.
75 void SetMaxHeight(int height); 75 void SetMaxHeight(int height);
76 76
77 // Called when the host is destroyed. 77 // Called when the host is destroyed.
78 void reset_host() { host_ = NULL; } 78 void reset_host() { host_ = NULL; }
79 79
80 // Overridden from views::WidgetDelegate. 80 // Overridden from views::WidgetDelegate.
81 virtual bool CanActivate() const OVERRIDE; 81 virtual bool CanActivate() const OVERRIDE;
82 82
(...skipping 23 matching lines...) Expand all
106 int max_height_; 106 int max_height_;
107 int bubble_width_; 107 int bubble_width_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 109 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
110 }; 110 };
111 111
112 } // namespace internal 112 } // namespace internal
113 } // namespace ash 113 } // namespace ash
114 114
115 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 115 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698