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 "ash/system/chromeos/label_tray_view.h" | 5 #include "ash/system/chromeos/label_tray_view.h" |
6 | 6 |
7 #include "ash/system/tray/hover_highlight_view.h" | 7 #include "ash/system/tray/hover_highlight_view.h" |
8 #include "ash/system/tray/tray_constants.h" | 8 #include "ash/system/tray/tray_constants.h" |
9 #include "ash/system/tray/tray_views.h" | |
10 #include "ash/system/tray/view_click_listener.h" | 9 #include "ash/system/tray/view_click_listener.h" |
11 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
12 #include "ui/gfx/font.h" | 11 #include "ui/gfx/font.h" |
13 #include "ui/views/controls/label.h" | 12 #include "ui/views/controls/label.h" |
14 #include "ui/views/layout/fill_layout.h" | 13 #include "ui/views/layout/fill_layout.h" |
15 | 14 |
16 namespace ash { | 15 namespace ash { |
17 namespace internal { | 16 namespace internal { |
18 | 17 |
19 LabelTrayView::LabelTrayView(ViewClickListener* click_listener, | 18 LabelTrayView::LabelTrayView(ViewClickListener* click_listener, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 child->text_label()->SetAllowCharacterBreak(true); | 50 child->text_label()->SetAllowCharacterBreak(true); |
52 child->set_border(views::Border::CreateEmptyBorder(0, | 51 child->set_border(views::Border::CreateEmptyBorder(0, |
53 kTrayPopupPaddingHorizontal, 0, kTrayPopupPaddingHorizontal)); | 52 kTrayPopupPaddingHorizontal, 0, kTrayPopupPaddingHorizontal)); |
54 child->SetExpandable(true); | 53 child->SetExpandable(true); |
55 child->SetVisible(true); | 54 child->SetVisible(true); |
56 return child; | 55 return child; |
57 } | 56 } |
58 | 57 |
59 } // namespace internal | 58 } // namespace internal |
60 } // namespace ash | 59 } // namespace ash |
OLD | NEW |