OLD | NEW |
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 #include "ui/message_center/message_bubble_base.h" | 5 #include "ui/message_center/message_bubble_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ui/message_center/message_view.h" | 8 #include "ui/message_center/message_view.h" |
9 #include "ui/views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
10 #include "ui/views/widget/widget_observer.h" | 10 #include "ui/views/widget/widget_observer.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 bool MessageBubbleBase::IsVisible() const { | 53 bool MessageBubbleBase::IsVisible() const { |
54 return bubble_view() && bubble_view()->GetWidget()->IsVisible(); | 54 return bubble_view() && bubble_view()->GetWidget()->IsVisible(); |
55 } | 55 } |
56 | 56 |
57 views::TrayBubbleView::InitParams MessageBubbleBase::GetDefaultInitParams( | 57 views::TrayBubbleView::InitParams MessageBubbleBase::GetDefaultInitParams( |
58 views::TrayBubbleView::AnchorAlignment anchor_alignment) { | 58 views::TrayBubbleView::AnchorAlignment anchor_alignment) { |
59 views::TrayBubbleView::InitParams init_params( | 59 views::TrayBubbleView::InitParams init_params( |
60 views::TrayBubbleView::ANCHOR_TYPE_TRAY, | 60 views::TrayBubbleView::ANCHOR_TYPE_TRAY, |
61 anchor_alignment, | 61 anchor_alignment, |
62 kNotificationBubbleWidth); | 62 kNotificationBubbleWidth); |
63 init_params.top_color = kBackgroundColor; | |
64 init_params.arrow_color = kHeaderBackgroundColorDark; | 63 init_params.arrow_color = kHeaderBackgroundColorDark; |
65 init_params.bubble_width = kWebNotificationWidth; | 64 init_params.bubble_width = kWebNotificationWidth; |
66 return init_params; | 65 return init_params; |
67 } | 66 } |
68 | 67 |
69 } // namespace message_center | 68 } // namespace message_center |
OLD | NEW |