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

Side by Side Diff: ui/message_center/cocoa/notification_controller.mm

Issue 16431009: Use a direct include of strings headers in ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months 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/keyboard/keyboard_util.cc ('k') | ui/message_center/message_center_impl_unittest.cc » ('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) 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
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
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_util.cc ('k') | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698