Skip to content

Commit

Permalink
Move wallpapers to ash/resource
Browse files Browse the repository at this point in the history
TBR=sky@chromium.org
BUG=141663
TEST=none

Review URL: https://codereview.chromium.org/10910264

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156728 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
oshima@chromium.org committed Sep 14, 2012
1 parent c1d4087 commit 056ab7e
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 123 deletions.
2 changes: 1 addition & 1 deletion ash/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ include_rules = [
"+content/public",
"+grit/ash_resources.h",
"+grit/ash_strings.h",
"+grit/ash_wallpaper_resources.h",
"+grit/ui_resources.h",
"+grit/ui_resources_wallpapers.h",
"+grit/ui_strings.h",
"+skia/ext",
"+third_party/cros_system_api",
Expand Down
2 changes: 1 addition & 1 deletion ash/ash.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
'../ui/oak/oak.gyp:oak',
'../ui/ui.gyp:ui',
'../ui/ui.gyp:ui_resources',
'../ui/ui.gyp:ui_resources_wallpapers',
'../ui/views/controls/webview/webview.gyp:webview',
'../ui/views/views.gyp:views',
'../ui/web_dialogs/web_dialogs.gyp:web_dialogs',
'ash_resources',
'ash_wallpaper_resources',
],
'defines': [
'ASH_IMPLEMENTATION',
Expand Down
21 changes: 21 additions & 0 deletions ash/ash_resources.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,26 @@
],
},
},
{
'target_name': 'ash_wallpaper_resources',
'type': 'none',
'conditions': [
['use_ash==1', {
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources',
},
'actions': [
{
'action_name': 'ash_wallpapers_resources',
'variables': {
'grit_grd_file': 'resources/ash_wallpaper_resources.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
],
'includes': [ '../build/grit_target.gypi' ],
}],
],
},
],
}
2 changes: 1 addition & 1 deletion ash/desktop_background/desktop_background_resources.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "base/logging.h"
#include "base/rand_util.h"
#include "grit/ui_resources_wallpapers.h"
#include "grit/ash_wallpaper_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chrome/chrome_repack_chrome.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}],
['use_ash==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_wallpapers.pak',
'<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_resources.pak',
],
}],
],
Expand Down
2 changes: 1 addition & 1 deletion chrome/chrome_resources.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@
'<(DEPTH)/net/net.gyp:net_resources',
'<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
'<(DEPTH)/ui/ui.gyp:ui_resources',
'<(DEPTH)/ui/ui.gyp:ui_resources_wallpapers',
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
],
Expand Down Expand Up @@ -304,6 +303,7 @@
['use_aura==1', {
'dependencies': [
'<(DEPTH)/ash/ash.gyp:ash_resources',
'<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
],
}],
['OS != "mac"', {
Expand Down
3 changes: 2 additions & 1 deletion chrome/tools/check_grd_for_unused_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def main():
ui_base_strings_dir = os.path.join(ui_base_dir, 'strings')
grd_files = [
os.path.join(ash_base_dir, 'ash_strings.grd'),
os.path.join(ash_base_dir, 'resources', 'ash_resources.grd'),
os.path.join(ash_base_dir, 'resources', 'ash_wallpaper_resources.grd'),
os.path.join(chrome_app_dir, 'chromium_strings.grd'),
os.path.join(chrome_app_dir, 'generated_resources.grd'),
os.path.join(chrome_app_dir, 'google_chrome_strings.grd'),
Expand All @@ -149,7 +151,6 @@ def main():
os.path.join(chrome_dir, 'renderer', 'resources',
'renderer_resources.grd'),
os.path.join(src_dir, 'ui', 'resources', 'ui_resources.grd'),
os.path.join(src_dir, 'ui', 'resources', 'ui_resources_wallpapers.grd'),
os.path.join(ui_base_strings_dir, 'app_locale_settings.grd'),
os.path.join(ui_base_strings_dir, 'ui_strings.grd'),
]
Expand Down
10 changes: 5 additions & 5 deletions tools/gritsettings/resource_ids
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
"webkit/tools/test_shell/test_shell_resources.grd": {
"includes": [5000],
},
"ui/resources/ui_resources_wallpapers.grd": {
"includes": [5500],
},
"ui/resources/ui_resources.grd": {
"structures": [6000],
"structures": [5500],
},
"ash/resources/ash_resources.grd": {
"structures": [6200],
"structures": [5900],
},
"ash/resources/ash_wallpaper_resources.grd": {
"includes": [6300],
},
"chrome/app/theme/theme_resources.grd": {
"includes": [6500],
Expand Down
21 changes: 0 additions & 21 deletions ui/ui_resources.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,5 @@
],
'includes': [ '../build/grit_target.gypi' ],
},
{
'target_name': 'ui_resources_wallpapers',
'type': 'none',
'conditions': [
['use_ash==1', {
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
},
'actions': [
{
'action_name': 'ui_resources_wallpapers',
'variables': {
'grit_grd_file': 'resources/ui_resources_wallpapers.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
],
'includes': [ '../build/grit_target.gypi' ],
}],
],
},
],
}

0 comments on commit 056ab7e

Please sign in to comment.