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

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

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)
Patch Set: rebase Created 4 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
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/views/message_bubble_base.h" 5 #include "ui/message_center/views/message_bubble_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return; 63 return;
64 64
65 max_height_ = height; 65 max_height_ = height;
66 if (bubble_view_) 66 if (bubble_view_)
67 bubble_view_->SetMaxHeight(max_height_); 67 bubble_view_->SetMaxHeight(max_height_);
68 } 68 }
69 69
70 views::TrayBubbleView::InitParams MessageBubbleBase::GetDefaultInitParams( 70 views::TrayBubbleView::InitParams MessageBubbleBase::GetDefaultInitParams(
71 views::TrayBubbleView::AnchorAlignment anchor_alignment) { 71 views::TrayBubbleView::AnchorAlignment anchor_alignment) {
72 views::TrayBubbleView::InitParams init_params( 72 views::TrayBubbleView::InitParams init_params(
73 views::TrayBubbleView::ANCHOR_TYPE_TRAY,
74 anchor_alignment, 73 anchor_alignment,
75 kNotificationWidth, 74 kNotificationWidth,
76 kNotificationWidth); 75 kNotificationWidth);
77 init_params.arrow_color = kBackgroundDarkColor; 76 init_params.bg_color = kBackgroundDarkColor;
78 return init_params; 77 return init_params;
79 } 78 }
80 79
81 } // namespace message_center 80 } // namespace message_center
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ui/message_center/views/message_center_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698