Only ship high DPI paks on Window.

This commit is contained in:
Cheng Zhao 2014-07-16 15:49:40 +08:00
parent 8f94d5886d
commit 9afc2daf75
3 changed files with 2 additions and 6 deletions

View file

@ -393,8 +393,6 @@
'<(libchromiumcontent_library_dir)/libffmpegsumo.so', '<(libchromiumcontent_library_dir)/libffmpegsumo.so',
'<(libchromiumcontent_resources_dir)/icudtl.dat', '<(libchromiumcontent_resources_dir)/icudtl.dat',
'<(libchromiumcontent_resources_dir)/content_shell.pak', '<(libchromiumcontent_resources_dir)/content_shell.pak',
'<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
'<(libchromiumcontent_resources_dir)/webkit_resources_200_percent.pak',
], ],
}, },
{ {
@ -656,8 +654,6 @@
'mac_bundle_resources': [ 'mac_bundle_resources': [
'atom/common/resources/mac/MainMenu.xib', 'atom/common/resources/mac/MainMenu.xib',
'<(libchromiumcontent_resources_dir)/content_shell.pak', '<(libchromiumcontent_resources_dir)/content_shell.pak',
'<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
'<(libchromiumcontent_resources_dir)/webkit_resources_200_percent.pak',
'<(libchromiumcontent_resources_dir)/icudtl.dat', '<(libchromiumcontent_resources_dir)/icudtl.dat',
], ],
'xcode_settings': { 'xcode_settings': {

View file

@ -24,12 +24,14 @@ AtomMainDelegate::~AtomMainDelegate() {
void AtomMainDelegate::AddDataPackFromPath( void AtomMainDelegate::AddDataPackFromPath(
ui::ResourceBundle* bundle, const base::FilePath& pak_dir) { ui::ResourceBundle* bundle, const base::FilePath& pak_dir) {
#if defined(OS_WIN)
bundle->AddDataPackFromPath( bundle->AddDataPackFromPath(
pak_dir.Append(FILE_PATH_LITERAL("ui_resources_200_percent.pak")), pak_dir.Append(FILE_PATH_LITERAL("ui_resources_200_percent.pak")),
ui::SCALE_FACTOR_200P); ui::SCALE_FACTOR_200P);
bundle->AddDataPackFromPath( bundle->AddDataPackFromPath(
pak_dir.Append(FILE_PATH_LITERAL("webkit_resources_200_percent.pak")), pak_dir.Append(FILE_PATH_LITERAL("webkit_resources_200_percent.pak")),
ui::SCALE_FACTOR_200P); ui::SCALE_FACTOR_200P);
#endif
} }
bool AtomMainDelegate::BasicStartupComplete(int* exit_code) { bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {

View file

@ -50,8 +50,6 @@ TARGET_BINARIES = {
'content_shell.pak', 'content_shell.pak',
'libchromiumcontent.so', 'libchromiumcontent.so',
'libffmpegsumo.so', 'libffmpegsumo.so',
'ui_resources_200_percent.pak',
'webkit_resources_200_percent.pak',
], ],
} }
TARGET_DIRECTORIES = { TARGET_DIRECTORIES = {