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

Side by Side Diff: ui/message_center/message_popup_bubble.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/message_center/message_bubble_base.cc ('k') | ui/views/bubble/tray_bubble_view.h » ('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_popup_bubble.h" 5 #include "ui/message_center/message_popup_bubble.h"
6 6
7 #include "ui/message_center/message_view.h" 7 #include "ui/message_center/message_view.h"
8 #include "ui/message_center/message_view_factory.h" 8 #include "ui/message_center/message_view_factory.h"
9 #include "ui/views/bubble/tray_bubble_view.h" 9 #include "ui/views/bubble/tray_bubble_view.h"
10 #include "ui/views/layout/box_layout.h" 10 #include "ui/views/layout/box_layout.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 num_popups_(0) { 68 num_popups_(0) {
69 } 69 }
70 70
71 MessagePopupBubble::~MessagePopupBubble() { 71 MessagePopupBubble::~MessagePopupBubble() {
72 } 72 }
73 73
74 views::TrayBubbleView::InitParams MessagePopupBubble::GetInitParams( 74 views::TrayBubbleView::InitParams MessagePopupBubble::GetInitParams(
75 views::TrayBubbleView::AnchorAlignment anchor_alignment) { 75 views::TrayBubbleView::AnchorAlignment anchor_alignment) {
76 views::TrayBubbleView::InitParams init_params = 76 views::TrayBubbleView::InitParams init_params =
77 GetDefaultInitParams(anchor_alignment); 77 GetDefaultInitParams(anchor_alignment);
78 init_params.top_color = kBackgroundColor;
79 init_params.arrow_color = kBackgroundColor; 78 init_params.arrow_color = kBackgroundColor;
80 init_params.close_on_deactivate = false; 79 init_params.close_on_deactivate = false;
81 return init_params; 80 return init_params;
82 } 81 }
83 82
84 void MessagePopupBubble::InitializeContents( 83 void MessagePopupBubble::InitializeContents(
85 views::TrayBubbleView* bubble_view) { 84 views::TrayBubbleView* bubble_view) {
86 bubble_view_ = bubble_view; 85 bubble_view_ = bubble_view;
87 contents_view_ = new PopupBubbleContentsView(list_delegate_); 86 contents_view_ = new PopupBubbleContentsView(list_delegate_);
88 bubble_view_->AddChildView(contents_view_); 87 bubble_view_->AddChildView(contents_view_);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 list_delegate_->GetNotificationList()->MarkPopupsAsShown(); 134 list_delegate_->GetNotificationList()->MarkPopupsAsShown();
136 num_popups_ = 0; 135 num_popups_ = 0;
137 UpdateBubbleView(); 136 UpdateBubbleView();
138 } 137 }
139 138
140 size_t MessagePopupBubble::NumMessageViewsForTest() const { 139 size_t MessagePopupBubble::NumMessageViewsForTest() const {
141 return contents_view_->NumMessageViews(); 140 return contents_view_->NumMessageViews();
142 } 141 }
143 142
144 } // namespace message_center 143 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/message_bubble_base.cc ('k') | ui/views/bubble/tray_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698