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

Side by Side Diff: ui/views/controls/message_box_view.cc

Issue 111373008: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/views/controls/menu/menu_item_view.cc ('k') | ui/views/controls/prefix_selector.h » ('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) 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/views/controls/message_box_view.h" 5 #include "ui/views/controls/message_box_view.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 18 matching lines...) Expand all
29 // Paragraph separators are defined in 29 // Paragraph separators are defined in
30 // http://www.unicode.org/Public/6.0.0/ucd/extracted/DerivedBidiClass.txt 30 // http://www.unicode.org/Public/6.0.0/ucd/extracted/DerivedBidiClass.txt
31 // 31 //
32 // # Bidi_Class=Paragraph_Separator 32 // # Bidi_Class=Paragraph_Separator
33 // 33 //
34 // 000A ; B # Cc <control-000A> 34 // 000A ; B # Cc <control-000A>
35 // 000D ; B # Cc <control-000D> 35 // 000D ; B # Cc <control-000D>
36 // 001C..001E ; B # Cc [3] <control-001C>..<control-001E> 36 // 001C..001E ; B # Cc [3] <control-001C>..<control-001E>
37 // 0085 ; B # Cc <control-0085> 37 // 0085 ; B # Cc <control-0085>
38 // 2029 ; B # Zp PARAGRAPH SEPARATOR 38 // 2029 ; B # Zp PARAGRAPH SEPARATOR
39 bool IsParagraphSeparator(char16 c) { 39 bool IsParagraphSeparator(base::char16 c) {
40 return ( c == 0x000A || c == 0x000D || c == 0x001C || c == 0x001D || 40 return ( c == 0x000A || c == 0x000D || c == 0x001C || c == 0x001D ||
41 c == 0x001E || c == 0x0085 || c == 0x2029); 41 c == 0x001E || c == 0x0085 || c == 0x2029);
42 } 42 }
43 43
44 // Splits |text| into a vector of paragraphs. 44 // Splits |text| into a vector of paragraphs.
45 // Given an example "\nabc\ndef\n\n\nhij\n", the split results should be: 45 // Given an example "\nabc\ndef\n\n\nhij\n", the split results should be:
46 // "", "abc", "def", "", "", "hij", and "". 46 // "", "abc", "def", "", "", "hij", and "".
47 void SplitStringIntoParagraphs(const base::string16& text, 47 void SplitStringIntoParagraphs(const base::string16& text,
48 std::vector<base::string16>* paragraphs) { 48 std::vector<base::string16>* paragraphs) {
49 paragraphs->clear(); 49 paragraphs->clear();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 270 }
271 271
272 if (link_) { 272 if (link_) {
273 layout->AddPaddingRow(0, inter_row_vertical_spacing_); 273 layout->AddPaddingRow(0, inter_row_vertical_spacing_);
274 layout->StartRow(0, extra_column_view_set_id); 274 layout->StartRow(0, extra_column_view_set_id);
275 layout->AddView(link_); 275 layout->AddView(link_);
276 } 276 }
277 } 277 }
278 278
279 } // namespace views 279 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_item_view.cc ('k') | ui/views/controls/prefix_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698