summaryrefslogtreecommitdiffstats
path: root/ui/base
diff options
context:
space:
mode:
authorbenrg@chromium.org <benrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 22:45:57 +0000
committerbenrg@chromium.org <benrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 22:45:57 +0000
commita52c73182eeb280d3409130d1094fc65d377f45c (patch)
treeef0d8c369f3345e8de69867c31df908e0992c7f5 /ui/base
parent22c6c9bcfd329aed556781231e832f403732b141 (diff)
downloadchromium_src-a52c73182eeb280d3409130d1094fc65d377f45c.zip
chromium_src-a52c73182eeb280d3409130d1094fc65d377f45c.tar.gz
chromium_src-a52c73182eeb280d3409130d1094fc65d377f45c.tar.bz2
Renamed resource files to be more verbose, specifically:
ui_resources_standard.pak => ui_resources_100_percent.pak ui_resources_2x.pak => ui_resources_200_percent.pak ui_resources_standard.rc => ui_resources_100_percent.rc theme_resources_standard.pak => theme_resources_100_percent.pak theme_resources_2x.pak => theme_resources_200_percent.pak theme_resources_standard.rc => theme_resources_100_percent.rc BUG=120185 TEST=run chome,ash_shell confirm assets loaded Review URL: https://chromiumcodereview.appspot.com/10694170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r--ui/base/resource/resource_bundle_android.cc6
-rw-r--r--ui/base/resource/resource_bundle_aurax11.cc23
-rw-r--r--ui/base/resource/resource_bundle_gtk.cc6
-rw-r--r--ui/base/resource/resource_bundle_mac.mm16
-rw-r--r--ui/base/resource/resource_bundle_win.cc14
-rw-r--r--ui/base/strings/ui_strings.gyp2
6 files changed, 40 insertions, 27 deletions
diff --git a/ui/base/resource/resource_bundle_android.cc b/ui/base/resource/resource_bundle_android.cc
index d5f7316..141d3af 100644
--- a/ui/base/resource/resource_bundle_android.cc
+++ b/ui/base/resource/resource_bundle_android.cc
@@ -31,9 +31,11 @@ namespace ui {
void ResourceBundle::LoadCommonResources() {
AddDataPackFromPath(GetResourcesPakFilePath("chrome.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_100_percent.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_100_percent.pak"),
SCALE_FACTOR_100P);
}
diff --git a/ui/base/resource/resource_bundle_aurax11.cc b/ui/base/resource/resource_bundle_aurax11.cc
index bdb6fcc..f443e57 100644
--- a/ui/base/resource/resource_bundle_aurax11.cc
+++ b/ui/base/resource/resource_bundle_aurax11.cc
@@ -44,29 +44,36 @@ void ResourceBundle::LoadCommonResources() {
if (ui::GetDisplayLayout() == ui::LAYOUT_TOUCH) {
// 1x touch
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_touch_1x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_touch_100_percent.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_touch.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_touch_100_percent.pak"),
SCALE_FACTOR_100P);
if (ShouldLoad2xResources()) {
// 2x touch
AddDataPackFromPath(
- GetResourcesPakFilePath("theme_resources_touch_2x.pak"),
+ GetResourcesPakFilePath("theme_resources_touch_200_percent.pak"),
SCALE_FACTOR_200P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_touch_2x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_touch_200_percent.pak"),
SCALE_FACTOR_200P);
}
} else {
// 1x non touch
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_100_percent.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_100_percent.pak"),
SCALE_FACTOR_100P);
if (ShouldLoad2xResources()) {
// 2x non touch
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_2x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_200_percent.pak"),
SCALE_FACTOR_200P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_2x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_200_percent.pak"),
SCALE_FACTOR_200P);
}
}
diff --git a/ui/base/resource/resource_bundle_gtk.cc b/ui/base/resource/resource_bundle_gtk.cc
index 2b90f5b..628ad48 100644
--- a/ui/base/resource/resource_bundle_gtk.cc
+++ b/ui/base/resource/resource_bundle_gtk.cc
@@ -67,9 +67,11 @@ FilePath GetResourcesPakFilePath(const std::string& pak_name) {
void ResourceBundle::LoadCommonResources() {
AddDataPackFromPath(GetResourcesPakFilePath("chrome.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_100_percent.pak"),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_standard.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_100_percent.pak"),
SCALE_FACTOR_100P);
}
diff --git a/ui/base/resource/resource_bundle_mac.mm b/ui/base/resource/resource_bundle_mac.mm
index c18a740..4c46218 100644
--- a/ui/base/resource/resource_bundle_mac.mm
+++ b/ui/base/resource/resource_bundle_mac.mm
@@ -51,19 +51,19 @@ FilePath GetResourcesPakFilePath(NSString* name, NSString* mac_locale) {
void ResourceBundle::LoadCommonResources() {
AddDataPackFromPath(GetResourcesPakFilePath(@"chrome", nil),
SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath(@"theme_resources_standard", nil),
- SCALE_FACTOR_100P);
- AddDataPackFromPath(GetResourcesPakFilePath(@"ui_resources_standard", nil),
- SCALE_FACTOR_100P);
+ AddDataPackFromPath(GetResourcesPakFilePath(@"theme_resources_100_percent",
+ nil), SCALE_FACTOR_100P);
+ AddDataPackFromPath(GetResourcesPakFilePath(@"ui_resources_100_percent",
+ nil), SCALE_FACTOR_100P);
// On Windows and ChromeOS we load either the 1x resource or the 2x resource.
// On Mac we load both and let the UI framework decide which one to use.
#if defined(ENABLE_HIDPI)
if (base::mac::IsOSLionOrLater()) {
- AddDataPackFromPath(GetResourcesPakFilePath(@"theme_resources_2x", nil),
- SCALE_FACTOR_200P);
- AddDataPackFromPath(GetResourcesPakFilePath(@"ui_resources_2x", nil),
- SCALE_FACTOR_200P);
+ AddDataPackFromPath(GetResourcesPakFilePath(@"theme_resources_200_percent",
+ nil), SCALE_FACTOR_200P);
+ AddDataPackFromPath(GetResourcesPakFilePath(@"ui_resources_200_percent",
+ nil), SCALE_FACTOR_200P);
}
#endif
}
diff --git a/ui/base/resource/resource_bundle_win.cc b/ui/base/resource/resource_bundle_win.cc
index 7ef486a..bba84d4 100644
--- a/ui/base/resource/resource_bundle_win.cc
+++ b/ui/base/resource/resource_bundle_win.cc
@@ -49,24 +49,26 @@ void ResourceBundle::LoadCommonResources() {
switch (ui::GetDisplayLayout()) {
case ui::LAYOUT_TOUCH:
AddDataPackFromPath(
- GetResourcesPakFilePath("theme_resources_touch_1x.pak"),
+ GetResourcesPakFilePath("theme_resources_touch_100_percent.pak"),
SCALE_FACTOR_100P);
AddDataPackFromPath(
- GetResourcesPakFilePath("ui_resources_standard.pak"),
+ GetResourcesPakFilePath("ui_resources_100_percent.pak"),
SCALE_FACTOR_100P);
break;
default:
if (use_hidpi) {
- AddDataPackFromPath(GetResourcesPakFilePath("theme_resources_2x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "theme_resources_200_percent.pak"),
SCALE_FACTOR_200P);
- AddDataPackFromPath(GetResourcesPakFilePath("ui_resources_2x.pak"),
+ AddDataPackFromPath(GetResourcesPakFilePath(
+ "ui_resources_200_percent.pak"),
SCALE_FACTOR_200P);
} else {
AddDataPackFromPath(
- GetResourcesPakFilePath("theme_resources_standard.pak"),
+ GetResourcesPakFilePath("theme_resources_100_percent.pak"),
SCALE_FACTOR_100P);
AddDataPackFromPath(
- GetResourcesPakFilePath("ui_resources_standard.pak"),
+ GetResourcesPakFilePath("ui_resources_100_percent.pak"),
SCALE_FACTOR_100P);
}
break;
diff --git a/ui/base/strings/ui_strings.gyp b/ui/base/strings/ui_strings.gyp
index 7adde77..2ac5d00 100644
--- a/ui/base/strings/ui_strings.gyp
+++ b/ui/base/strings/ui_strings.gyp
@@ -65,7 +65,7 @@
{
'destination': '<(PRODUCT_DIR)/ui_unittests_strings',
'files': [
- '<(grit_base_out_dir)/ui_resources/ui_resources_standard.pak',
+ '<(grit_base_out_dir)/ui_resources/ui_resources_100_percent.pak',
],
},
],