| 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/tray/label_tray_view.h" | 5 #include "ash/system/tray/label_tray_view.h" |
| 6 | 6 |
| 7 #include "ash/resources/grit/ash_resources.h" | |
| 8 #include "ash/resources/vector_icons/vector_icons.h" | 7 #include "ash/resources/vector_icons/vector_icons.h" |
| 9 #include "ash/system/tray/hover_highlight_view.h" | 8 #include "ash/system/tray/hover_highlight_view.h" |
| 10 #include "ash/system/tray/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
| 11 #include "ash/system/tray/view_click_listener.h" | 10 #include "ash/system/tray/view_click_listener.h" |
| 12 #include "ui/gfx/font.h" | 11 #include "ui/gfx/font.h" |
| 13 #include "ui/gfx/paint_vector_icon.h" | 12 #include "ui/gfx/paint_vector_icon.h" |
| 14 #include "ui/views/controls/label.h" | 13 #include "ui/views/controls/label.h" |
| 15 #include "ui/views/layout/fill_layout.h" | 14 #include "ui/views/layout/fill_layout.h" |
| 16 | 15 |
| 17 namespace ash { | 16 namespace ash { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 gfx::ImageSkia icon_image = gfx::CreateVectorIcon(icon_, kMenuIconColor); | 45 gfx::ImageSkia icon_image = gfx::CreateVectorIcon(icon_, kMenuIconColor); |
| 47 child->AddIconAndLabelForDefaultView(icon_image, message); | 46 child->AddIconAndLabelForDefaultView(icon_image, message); |
| 48 child->text_label()->SetMultiLine(true); | 47 child->text_label()->SetMultiLine(true); |
| 49 child->text_label()->SetAllowCharacterBreak(true); | 48 child->text_label()->SetAllowCharacterBreak(true); |
| 50 child->SetExpandable(true); | 49 child->SetExpandable(true); |
| 51 child->SetVisible(true); | 50 child->SetVisible(true); |
| 52 return child; | 51 return child; |
| 53 } | 52 } |
| 54 | 53 |
| 55 } // namespace ash | 54 } // namespace ash |
| OLD | NEW |