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

Side by Side Diff: ui/message_center/message_bubble_base.cc

Issue 11293124: Remove top and bottom margins from TrayBubbleView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit addressed. Created 8 years, 1 month 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 | « ui/compositor/layer.cc ('k') | ui/message_center/message_popup_bubble.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 #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
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
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/message_center/message_popup_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698