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

Side by Side 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 miket comments. Created 7 years, 10 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
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 UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 5 #ifndef UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace internal { 28 namespace internal {
29 class TrayBubbleBorder; 29 class TrayBubbleBorder;
30 class TrayBubbleContentMask; 30 class TrayBubbleContentMask;
31 } 31 }
32 32
33 class VIEWS_EXPORT TrayBubbleView : public views::BubbleDelegateView { 33 class VIEWS_EXPORT TrayBubbleView : public views::BubbleDelegateView {
34 public: 34 public:
35 enum AnchorType { 35 enum AnchorType {
36 ANCHOR_TYPE_TRAY, 36 ANCHOR_TYPE_TRAY,
37 ANCHOR_TYPE_BUBBLE 37 ANCHOR_TYPE_BUBBLE,
38 }; 38 };
39 39
40 enum AnchorAlignment { 40 enum AnchorAlignment {
msw 2013/01/29 23:23:16 nit: Add a comment explaining the meaning of the e
dewittj 2013/01/30 23:08:32 Done.
41 ANCHOR_ALIGNMENT_BOTTOM, 41 ANCHOR_ALIGNMENT_BOTTOM,
42 ANCHOR_ALIGNMENT_LEFT, 42 ANCHOR_ALIGNMENT_LEFT,
43 ANCHOR_ALIGNMENT_RIGHT, 43 ANCHOR_ALIGNMENT_RIGHT,
44 ANCHOR_ALIGNMENT_TOP 44 ANCHOR_ALIGNMENT_TOP
45 }; 45 };
46 46
47 class VIEWS_EXPORT Delegate { 47 class VIEWS_EXPORT Delegate {
48 public: 48 public:
49 typedef TrayBubbleView::AnchorType AnchorType; 49 typedef TrayBubbleView::AnchorType AnchorType;
50 typedef TrayBubbleView::AnchorAlignment AnchorAlignment; 50 typedef TrayBubbleView::AnchorAlignment AnchorAlignment;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 AnchorAlignment anchor_alignment; 89 AnchorAlignment anchor_alignment;
90 int min_width; 90 int min_width;
91 int max_width; 91 int max_width;
92 int max_height; 92 int max_height;
93 bool can_activate; 93 bool can_activate;
94 bool close_on_deactivate; 94 bool close_on_deactivate;
95 SkColor arrow_color; 95 SkColor arrow_color;
96 views::BubbleBorder::ArrowLocation arrow_location; 96 views::BubbleBorder::ArrowLocation arrow_location;
97 int arrow_offset; 97 int arrow_offset;
98 views::BubbleBorder::Shadow shadow; 98 views::BubbleBorder::Shadow shadow;
99 views::BubbleBorder::BubbleAlignment arrow_alignment;
99 }; 100 };
100 101
101 // Constructs and returns a TrayBubbleView. init_params may be modified. 102 // Constructs and returns a TrayBubbleView. init_params may be modified.
102 static TrayBubbleView* Create(gfx::NativeView parent_window, 103 static TrayBubbleView* Create(gfx::NativeView parent_window,
103 views::View* anchor, 104 views::View* anchor,
104 Delegate* delegate, 105 Delegate* delegate,
105 InitParams* init_params); 106 InitParams* init_params);
106 107
107 virtual ~TrayBubbleView(); 108 virtual ~TrayBubbleView();
108 109
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 internal::TrayBubbleBorder* bubble_border_; 173 internal::TrayBubbleBorder* bubble_border_;
173 scoped_ptr<internal::TrayBubbleContentMask> bubble_content_mask_; 174 scoped_ptr<internal::TrayBubbleContentMask> bubble_content_mask_;
174 bool is_gesture_dragging_; 175 bool is_gesture_dragging_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 177 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
177 }; 178 };
178 179
179 } // namespace views 180 } // namespace views
180 181
181 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 182 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698