Commit 6624610c authored by tony@chromium.org's avatar tony@chromium.org

Only put the chrome frame resources in the locale dlls.

Chrome Frame needs 2 dialogs and an icon in the locale dlls.  The
rest of the strings and resources can be pulled from the locale
pak files.

This also removes the icon from the pak files and moves them into the
dlls.

BUG=94362

Review URL: http://codereview.chromium.org/7766007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98513 0039d316-1c4b-4281-b951-d872f2087c98
parent 294a6fa7
...@@ -13515,15 +13515,8 @@ Keep your key file in a safe place. You will need it to create new versions of y ...@@ -13515,15 +13515,8 @@ Keep your key file in a safe place. You will need it to create new versions of y
Tracing Tracing
</message> </message>
</messages> </messages>
<includes>
<if expr="pp_ifdef('_google_chrome')">
<include name="IDI_CHROME_FRAME_ICON" file="theme\google_chrome\chrome.ico" type="ICON" />
</if>
<if expr="not pp_ifdef('_google_chrome')">
<include name="IDI_CHROME_FRAME_ICON" file="theme\chromium\chromium.ico" type="ICON" />
</if>
</includes>
<structures fallback_to_english="true"> <structures fallback_to_english="true">
<!-- Make sure these stay in sync with the structures in generated_resources.grd. -->
<structure name="IDD_CHROME_FRAME_FIND_DIALOG" file="cf_resources.rc" type="dialog" > <structure name="IDD_CHROME_FRAME_FIND_DIALOG" file="cf_resources.rc" type="dialog" >
</structure> </structure>
<structure name="IDD_CHROME_FRAME_READY_PROMPT" file="cf_resources.rc" type="dialog" > <structure name="IDD_CHROME_FRAME_READY_PROMPT" file="cf_resources.rc" type="dialog" >
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
}, },
'target_defaults': { 'target_defaults': {
'dependencies': [ 'dependencies': [
# locales need to be built for the chrome frame binaries to be loadable.
'locales/locales.gyp:*',
'../chrome/chrome.gyp:chrome_resources', '../chrome/chrome.gyp:chrome_resources',
'../chrome/chrome.gyp:chrome_strings', '../chrome/chrome.gyp:chrome_strings',
'../chrome/chrome.gyp:packed_resources', '../chrome/chrome.gyp:packed_resources',
...@@ -85,6 +83,7 @@ ...@@ -85,6 +83,7 @@
'chrome_frame_ie', 'chrome_frame_ie',
'chrome_frame_strings', 'chrome_frame_strings',
'chrome_tab_idl', 'chrome_tab_idl',
'locales/locales.gyp:*',
], ],
'sources': [ 'sources': [
'<(SHARED_INTERMEDIATE_DIR)/chrome_tab.h', '<(SHARED_INTERMEDIATE_DIR)/chrome_tab.h',
...@@ -205,6 +204,7 @@ ...@@ -205,6 +204,7 @@
'chrome_frame_strings', 'chrome_frame_strings',
'chrome_frame_utils', 'chrome_frame_utils',
'chrome_tab_idl', 'chrome_tab_idl',
'locales/locales.gyp:*',
'npchrome_frame', 'npchrome_frame',
], ],
'sources': [ 'sources': [
...@@ -311,6 +311,7 @@ ...@@ -311,6 +311,7 @@
'chrome_frame_strings', 'chrome_frame_strings',
'chrome_frame_utils', 'chrome_frame_utils',
'chrome_tab_idl', 'chrome_tab_idl',
'locales/locales.gyp:*',
'npchrome_frame', 'npchrome_frame',
], ],
'sources': [ 'sources': [
...@@ -464,6 +465,7 @@ ...@@ -464,6 +465,7 @@
'chrome_frame_ie', 'chrome_frame_ie',
'chrome_frame_strings', 'chrome_frame_strings',
'chrome_tab_idl', 'chrome_tab_idl',
'locales/locales.gyp:*',
], ],
'sources': [ 'sources': [
'test/reliability/run_all_unittests.cc', 'test/reliability/run_all_unittests.cc',
...@@ -532,6 +534,7 @@ ...@@ -532,6 +534,7 @@
'../third_party/iaccessible2/iaccessible2.gyp:iaccessible2', '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
'chrome_frame_ie', 'chrome_frame_ie',
'chrome_frame_strings', 'chrome_frame_strings',
'locales/locales.gyp:*',
'npchrome_frame', 'npchrome_frame',
], ],
'sources': [ 'sources': [
...@@ -600,6 +603,13 @@ ...@@ -600,6 +603,13 @@
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{
'action_name': 'chrome_frame_dialogs',
'variables': {
'grit_grd_file': 'resources/chrome_frame_dialogs.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
], ],
'includes': [ '../build/grit_target.gypi' ], 'includes': [ '../build/grit_target.gypi' ],
}, },
...@@ -631,6 +641,7 @@ ...@@ -631,6 +641,7 @@
'chrome_frame_strings', 'chrome_frame_strings',
'chrome_frame_utils', 'chrome_frame_utils',
'chrome_tab_idl', 'chrome_tab_idl',
'locales/locales.gyp:*',
'../build/temp_gyp/googleurl.gyp:googleurl', '../build/temp_gyp/googleurl.gyp:googleurl',
'../chrome/app/policy/cloud_policy_codegen.gyp:policy', '../chrome/app/policy/cloud_policy_codegen.gyp:policy',
'../chrome/chrome.gyp:common', '../chrome/chrome.gyp:common',
...@@ -829,9 +840,10 @@ ...@@ -829,9 +840,10 @@
'chrome_frame_utils', 'chrome_frame_utils',
'chrome_tab_idl', 'chrome_tab_idl',
'chrome_frame_launcher.gyp:chrome_launcher', 'chrome_frame_launcher.gyp:chrome_launcher',
'../build/temp_gyp/googleurl.gyp:googleurl',
'chrome_frame_launcher.gyp:chrome_frame_helper', 'chrome_frame_launcher.gyp:chrome_frame_helper',
'chrome_frame_launcher.gyp:chrome_frame_helper_dll', 'chrome_frame_launcher.gyp:chrome_frame_helper_dll',
'locales/locales.gyp:*',
'../build/temp_gyp/googleurl.gyp:googleurl',
'../chrome/chrome.gyp:chrome', '../chrome/chrome.gyp:chrome',
'../chrome/chrome.gyp:chrome_dll', '../chrome/chrome.gyp:chrome_dll',
'../chrome/chrome.gyp:chrome_version_resources', '../chrome/chrome.gyp:chrome_version_resources',
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "resource.h" #include "resource.h"
#include "grit/generated_resources.h" #include "grit/chrome_frame_dialogs.h"
class ChromeFrameAutomationClient; class ChromeFrameAutomationClient;
......
This diff is collapsed.
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "chrome_frame/ready_mode/internal/ready_mode_state.h" #include "chrome_frame/ready_mode/internal/ready_mode_state.h"
#include "chrome_frame/ready_mode/internal/url_launcher.h" #include "chrome_frame/ready_mode/internal/url_launcher.h"
#include "chrome_frame/simple_resource_loader.h" #include "chrome_frame/simple_resource_loader.h"
#include "grit/chrome_frame_dialogs.h"
#include "grit/chromium_strings.h" #include "grit/chromium_strings.h"
// atlctrlx.h requires 'min' and 'max' macros, the definition of which conflicts // atlctrlx.h requires 'min' and 'max' macros, the definition of which conflicts
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "base/win/scoped_comptr.h" #include "base/win/scoped_comptr.h"
#include "chrome_frame/infobars/infobar_content.h" #include "chrome_frame/infobars/infobar_content.h"
#include "chrome_frame/resource.h" #include "chrome_frame/resource.h"
#include "grit/generated_resources.h" #include "grit/chrome_frame_dialogs.h"
class ReadyModeState; class ReadyModeState;
class UrlLauncher; class UrlLauncher;
......
<?xml version="1.0" encoding="UTF-8"?>
<grit base_dir="." latest_public_release="0" current_release="1"
source_lang_id="en" enc_check="möl">
<outputs>
<output filename="grit/chrome_frame_dialogs.h" type="rc_header">
<emit emit_type='prepend'></emit>
</output>
<output filename="chrome_frame_dialogs_am.rc" type="rc_all" lang="am" />
<output filename="chrome_frame_dialogs_ar.rc" type="rc_all" lang="ar" />
<output filename="chrome_frame_dialogs_bg.rc" type="rc_all" lang="bg" />
<output filename="chrome_frame_dialogs_bn.rc" type="rc_all" lang="bn" />
<output filename="chrome_frame_dialogs_ca.rc" type="rc_all" lang="ca" />
<output filename="chrome_frame_dialogs_cs.rc" type="rc_all" lang="cs" />
<output filename="chrome_frame_dialogs_da.rc" type="rc_all" lang="da" />
<output filename="chrome_frame_dialogs_de.rc" type="rc_all" lang="de" />
<output filename="chrome_frame_dialogs_el.rc" type="rc_all" lang="el" />
<output filename="chrome_frame_dialogs_en-GB.rc" type="rc_all" lang="en-GB" />
<output filename="chrome_frame_dialogs_en-US.rc" type="rc_all" lang="en" />
<output filename="chrome_frame_dialogs_es.rc" type="rc_all" lang="es" />
<output filename="chrome_frame_dialogs_es-419.rc" type="rc_all" lang="es-419" />
<output filename="chrome_frame_dialogs_et.rc" type="rc_all" lang="et" />
<output filename="chrome_frame_dialogs_fa.rc" type="rc_all" lang="fa" />
<output filename="chrome_frame_dialogs_fi.rc" type="rc_all" lang="fi" />
<output filename="chrome_frame_dialogs_fil.rc" type="rc_all" lang="fil" />
<output filename="chrome_frame_dialogs_fr.rc" type="rc_all" lang="fr" />
<output filename="chrome_frame_dialogs_gu.rc" type="rc_all" lang="gu" />
<output filename="chrome_frame_dialogs_he.rc" type="rc_all" lang="he" />
<output filename="chrome_frame_dialogs_hi.rc" type="rc_all" lang="hi" />
<output filename="chrome_frame_dialogs_hr.rc" type="rc_all" lang="hr" />
<output filename="chrome_frame_dialogs_hu.rc" type="rc_all" lang="hu" />
<output filename="chrome_frame_dialogs_id.rc" type="rc_all" lang="id" />
<output filename="chrome_frame_dialogs_it.rc" type="rc_all" lang="it" />
<output filename="chrome_frame_dialogs_ja.rc" type="rc_all" lang="ja" />
<output filename="chrome_frame_dialogs_kn.rc" type="rc_all" lang="kn" />
<output filename="chrome_frame_dialogs_ko.rc" type="rc_all" lang="ko" />
<output filename="chrome_frame_dialogs_lt.rc" type="rc_all" lang="lt" />
<output filename="chrome_frame_dialogs_lv.rc" type="rc_all" lang="lv" />
<output filename="chrome_frame_dialogs_ml.rc" type="rc_all" lang="ml" />
<output filename="chrome_frame_dialogs_mr.rc" type="rc_all" lang="mr" />
<output filename="chrome_frame_dialogs_nl.rc" type="rc_all" lang="nl" />
<!-- The translation console uses 'no' for Norwegian Bokmål. It should
be 'nb'. -->
<output filename="chrome_frame_dialogs_nb.rc" type="rc_all" lang="no" />
<output filename="chrome_frame_dialogs_pl.rc" type="rc_all" lang="pl" />
<output filename="chrome_frame_dialogs_pt-BR.rc" type="rc_all" lang="pt-BR" />
<output filename="chrome_frame_dialogs_pt-PT.rc" type="rc_all" lang="pt-PT" />
<output filename="chrome_frame_dialogs_ro.rc" type="rc_all" lang="ro" />
<output filename="chrome_frame_dialogs_ru.rc" type="rc_all" lang="ru" />
<output filename="chrome_frame_dialogs_sk.rc" type="rc_all" lang="sk" />
<output filename="chrome_frame_dialogs_sl.rc" type="rc_all" lang="sl" />
<output filename="chrome_frame_dialogs_sr.rc" type="rc_all" lang="sr" />
<output filename="chrome_frame_dialogs_sv.rc" type="rc_all" lang="sv" />
<output filename="chrome_frame_dialogs_sw.rc" type="rc_all" lang="sw" />
<output filename="chrome_frame_dialogs_ta.rc" type="rc_all" lang="ta" />
<output filename="chrome_frame_dialogs_te.rc" type="rc_all" lang="te" />
<output filename="chrome_frame_dialogs_th.rc" type="rc_all" lang="th" />
<output filename="chrome_frame_dialogs_tr.rc" type="rc_all" lang="tr" />
<output filename="chrome_frame_dialogs_uk.rc" type="rc_all" lang="uk" />
<output filename="chrome_frame_dialogs_vi.rc" type="rc_all" lang="vi" />
<output filename="chrome_frame_dialogs_zh-CN.rc" type="rc_all" lang="zh-CN" />
<output filename="chrome_frame_dialogs_zh-TW.rc" type="rc_all" lang="zh-TW" />
</outputs>
<translations>
<file path="../../chrome/app/resources/generated_resources_am.xtb" lang="am" />
<file path="../../chrome/app/resources/generated_resources_ar.xtb" lang="ar" />
<file path="../../chrome/app/resources/generated_resources_bg.xtb" lang="bg" />
<file path="../../chrome/app/resources/generated_resources_bn.xtb" lang="bn" />
<file path="../../chrome/app/resources/generated_resources_ca.xtb" lang="ca" />
<file path="../../chrome/app/resources/generated_resources_cs.xtb" lang="cs" />
<file path="../../chrome/app/resources/generated_resources_da.xtb" lang="da" />
<file path="../../chrome/app/resources/generated_resources_de.xtb" lang="de" />
<file path="../../chrome/app/resources/generated_resources_el.xtb" lang="el" />
<file path="../../chrome/app/resources/generated_resources_en-GB.xtb" lang="en-GB" />
<file path="../../chrome/app/resources/generated_resources_es.xtb" lang="es" />
<file path="../../chrome/app/resources/generated_resources_es-419.xtb" lang="es-419" />
<file path="../../chrome/app/resources/generated_resources_et.xtb" lang="et" />
<file path="../../chrome/app/resources/generated_resources_fa.xtb" lang="fa" />
<file path="../../chrome/app/resources/generated_resources_fi.xtb" lang="fi" />
<file path="../../chrome/app/resources/generated_resources_fil.xtb" lang="fil" />
<file path="../../chrome/app/resources/generated_resources_fr.xtb" lang="fr" />
<file path="../../chrome/app/resources/generated_resources_gu.xtb" lang="gu" />
<file path="../../chrome/app/resources/generated_resources_hi.xtb" lang="hi" />
<file path="../../chrome/app/resources/generated_resources_hr.xtb" lang="hr" />
<file path="../../chrome/app/resources/generated_resources_hu.xtb" lang="hu" />
<file path="../../chrome/app/resources/generated_resources_id.xtb" lang="id" />
<file path="../../chrome/app/resources/generated_resources_it.xtb" lang="it" />
<!-- The translation console uses 'iw' for Hebrew, but we use 'he'. -->
<file path="../../chrome/app/resources/generated_resources_iw.xtb" lang="he" />
<file path="../../chrome/app/resources/generated_resources_ja.xtb" lang="ja" />
<file path="../../chrome/app/resources/generated_resources_kn.xtb" lang="kn" />
<file path="../../chrome/app/resources/generated_resources_ko.xtb" lang="ko" />
<file path="../../chrome/app/resources/generated_resources_lt.xtb" lang="lt" />
<file path="../../chrome/app/resources/generated_resources_lv.xtb" lang="lv" />
<file path="../../chrome/app/resources/generated_resources_ml.xtb" lang="ml" />
<file path="../../chrome/app/resources/generated_resources_mr.xtb" lang="mr" />
<file path="../../chrome/app/resources/generated_resources_nl.xtb" lang="nl" />
<file path="../../chrome/app/resources/generated_resources_no.xtb" lang="no" />
<file path="../../chrome/app/resources/generated_resources_pl.xtb" lang="pl" />
<file path="../../chrome/app/resources/generated_resources_pt-BR.xtb" lang="pt-BR" />
<file path="../../chrome/app/resources/generated_resources_pt-PT.xtb" lang="pt-PT" />
<file path="../../chrome/app/resources/generated_resources_ro.xtb" lang="ro" />
<file path="../../chrome/app/resources/generated_resources_ru.xtb" lang="ru" />
<file path="../../chrome/app/resources/generated_resources_sk.xtb" lang="sk" />
<file path="../../chrome/app/resources/generated_resources_sl.xtb" lang="sl" />
<file path="../../chrome/app/resources/generated_resources_sr.xtb" lang="sr" />
<file path="../../chrome/app/resources/generated_resources_sv.xtb" lang="sv" />
<file path="../../chrome/app/resources/generated_resources_sw.xtb" lang="sw" />
<file path="../../chrome/app/resources/generated_resources_ta.xtb" lang="ta" />
<file path="../../chrome/app/resources/generated_resources_te.xtb" lang="te" />
<file path="../../chrome/app/resources/generated_resources_th.xtb" lang="th" />
<file path="../../chrome/app/resources/generated_resources_tr.xtb" lang="tr" />
<file path="../../chrome/app/resources/generated_resources_uk.xtb" lang="uk" />
<file path="../../chrome/app/resources/generated_resources_vi.xtb" lang="vi" />
<file path="../../chrome/app/resources/generated_resources_zh-CN.xtb" lang="zh-CN" />
<file path="../../chrome/app/resources/generated_resources_zh-TW.xtb" lang="zh-TW" />
</translations>
<release seq="1" allow_pseudo="false">
<includes>
<if expr="pp_ifdef('_google_chrome')">
<include name="IDI_CHROME_FRAME_ICON" file="../../chrome/app/theme/google_chrome/chrome.ico" type="ICON" />
</if>
<if expr="not pp_ifdef('_google_chrome')">
<include name="IDI_CHROME_FRAME_ICON" file="../../chrome/app/theme/chromium/chromium.ico" type="ICON" />
</if>
</includes>
<structures fallback_to_english="true">
<!-- Make sure these stay in sync with the structures in generated_resources.grd. -->
<structure name="IDD_CHROME_FRAME_FIND_DIALOG" file="../../chrome/app/cf_resources.rc" type="dialog" >
</structure>
<structure name="IDD_CHROME_FRAME_READY_PROMPT" file="../../chrome/app/cf_resources.rc" type="dialog" >
</structure>
</structures>
</release>
</grit>
...@@ -97,9 +97,15 @@ ...@@ -97,9 +97,15 @@
# strings. # strings.
"chrome/app/generated_resources.grd": { "chrome/app/generated_resources.grd": {
"structures": [10500], "structures": [10500],
"includes": [10750],
"messages": [11000], "messages": [11000],
}, },
# The chrome frame dialogs are also in generated_resources.grd so they
# get included by the translation console. We make sure that the ids
# for structures here are the same as for generated_resources.grd.
"chrome_frame/resources/chrome_frame_dialogs.grd": {
"structures": [10500],
"includes": [10750],
},
"webkit/glue/inspector_strings.grd": { "webkit/glue/inspector_strings.grd": {
"messages": [16000], "messages": [16000],
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment