OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #import "ui/message_center/cocoa/notification_controller.h" | 5 #import "ui/message_center/cocoa/notification_controller.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/sys_string_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
10 #include "base/strings/sys_string_conversions.h" | |
11 #include "grit/ui_resources.h" | 11 #include "grit/ui_resources.h" |
12 #include "skia/ext/skia_utils_mac.h" | 12 #include "skia/ext/skia_utils_mac.h" |
13 #import "ui/base/cocoa/hover_image_button.h" | 13 #import "ui/base/cocoa/hover_image_button.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/base/text/text_elider.h" | 15 #include "ui/base/text/text_elider.h" |
16 #include "ui/message_center/message_center.h" | 16 #include "ui/message_center/message_center.h" |
17 #include "ui/message_center/message_center_style.h" | 17 #include "ui/message_center/message_center_style.h" |
18 #include "ui/message_center/notification.h" | 18 #include "ui/message_center/notification.h" |
19 | 19 |
20 @interface MCNotificationButtonCell : NSButtonCell { | 20 @interface MCNotificationButtonCell : NSButtonCell { |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 if (font.GetStringWidth(last) > width) | 533 if (font.GetStringWidth(last) > width) |
534 last = ui::ElideText(last, font, width, ui::ELIDE_AT_END); | 534 last = ui::ElideText(last, font, width, ui::ELIDE_AT_END); |
535 wrapped.resize(lines - 1); | 535 wrapped.resize(lines - 1); |
536 wrapped.push_back(last); | 536 wrapped.push_back(last); |
537 } | 537 } |
538 | 538 |
539 return JoinString(wrapped, '\n'); | 539 return JoinString(wrapped, '\n'); |
540 } | 540 } |
541 | 541 |
542 @end | 542 @end |
OLD | NEW |