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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.mm

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google, Inc. 3 * Copyright (C) 2008, 2009 Google, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 String LayoutThemeMac::fileListNameForWidth(Locale& locale, const FileList* file List, const Font& font, int width) const 1079 String LayoutThemeMac::fileListNameForWidth(Locale& locale, const FileList* file List, const Font& font, int width) const
1080 { 1080 {
1081 if (width <= 0) 1081 if (width <= 0)
1082 return String(); 1082 return String();
1083 1083
1084 String strToTruncate; 1084 String strToTruncate;
1085 if (fileList->isEmpty()) { 1085 if (fileList->isEmpty()) {
1086 strToTruncate = locale.queryString(WebLocalizedString::FileButtonNoFileS electedLabel); 1086 strToTruncate = locale.queryString(WebLocalizedString::FileButtonNoFileS electedLabel);
1087 } else if (fileList->length() == 1) { 1087 } else if (fileList->length() == 1) {
1088 File* file = fileList->item(0); 1088 File* file = fileList->item(0);
1089 if (file->userVisibility() == File::IsUserVisible) 1089 if (file->getUserVisibility() == File::IsUserVisible)
1090 strToTruncate = [[NSFileManager defaultManager] displayNameAtPath:(f ileList->item(0)->path())]; 1090 strToTruncate = [[NSFileManager defaultManager] displayNameAtPath:(f ileList->item(0)->path())];
1091 else 1091 else
1092 strToTruncate = file->name(); 1092 strToTruncate = file->name();
1093 } else { 1093 } else {
1094 // FIXME: Localization of fileList->length(). 1094 // FIXME: Localization of fileList->length().
1095 return StringTruncator::rightTruncate(locale.queryString(WebLocalizedStr ing::MultipleFileUploadText, String::number(fileList->length())), width, font); 1095 return StringTruncator::rightTruncate(locale.queryString(WebLocalizedStr ing::MultipleFileUploadText, String::number(fileList->length())), width, font);
1096 } 1096 }
1097 1097
1098 return StringTruncator::centerTruncate(strToTruncate, width, font); 1098 return StringTruncator::centerTruncate(strToTruncate, width, font);
1099 } 1099 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 1169
1170 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const 1170 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const
1171 { 1171 {
1172 ControlPart part = style.appearance(); 1172 ControlPart part = style.appearance();
1173 if (part == CheckboxPart || part == RadioPart) 1173 if (part == CheckboxPart || part == RadioPart)
1174 return style.effectiveZoom() != 1; 1174 return style.effectiveZoom() != 1;
1175 return false; 1175 return false;
1176 } 1176 }
1177 1177
1178 } // namespace blink 1178 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698