diff options
author | slightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 05:11:58 +0000 |
---|---|---|
committer | slightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 05:11:58 +0000 |
commit | f781782dd67077478e117c61dca4ea5eefce3544 (patch) | |
tree | 4801f724123cfdcbb69c4e7fe40a565b331723ae /chrome_frame/resources | |
parent | 63cf4759efa2373e33436fb5df6849f930081226 (diff) | |
download | chromium_src-f781782dd67077478e117c61dca4ea5eefce3544.zip chromium_src-f781782dd67077478e117c61dca4ea5eefce3544.tar.gz chromium_src-f781782dd67077478e117c61dca4ea5eefce3544.tar.bz2 |
Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming in a separate CL.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/218019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/resources')
-rw-r--r-- | chrome_frame/resources/chrome_frame_resources.grd | 55 | ||||
-rw-r--r-- | chrome_frame/resources/chrome_frame_strings.grd | 40 | ||||
-rw-r--r-- | chrome_frame/resources/structured_resources.rc | 24 | ||||
-rw-r--r-- | chrome_frame/resources/tlb_resource.rc | 68 |
4 files changed, 187 insertions, 0 deletions
diff --git a/chrome_frame/resources/chrome_frame_resources.grd b/chrome_frame/resources/chrome_frame_resources.grd new file mode 100644 index 0000000..c249ce8 --- /dev/null +++ b/chrome_frame/resources/chrome_frame_resources.grd @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +source code is governed by a BSD-style license that can be found in the LICENSE +file. +--> + +<!-- +Embeded strings, branding resource, etc. See chrome_frame_strings.grd +for localizable strings +--> + +<grit latest_public_release="0" current_release="1"> + <outputs> + <output filename="grit/chrome_frame_resources.h" type="rc_header"> + <emit emit_type='prepend'></emit> + </output> + <output filename="chrome_frame_resources.rc" type="rc_all" lang="en"/> + <output filename="chrome_frame_resources.pak" type="data_package" /> + </outputs> + <release seq="1"> + <messages> + <!-- TODO(slightlyoff): should these be in chrome_frame_strings.grd + instead? --> + <message name="IDS_PROJNAME"> + ChromeTab + </message> + <message name="IDS_VERSIONMISMATCH_HEADER"> + ChromeFrame Update. + </message> + <message name="IDS_VERSIONMISMATCH"> + ChromeFrame has been updated. Please restart your browser. Chrome version: <ph name="TODO_0001">%ls<ex>TODO</ex></ph>, Chrome Frame version: <ph name="TODO_0002">%ls<ex>TODO</ex></ph> + </message> + <message name="IDS_VERSIONUNKNOWN"> + Very old + </message> + </messages> + <structures first_id="50000"> + <structure name="IDD_FIND_DIALOG" file="structured_resources.rc" type="dialog" > + </structure> + </structures> + <includes> + <include name="IDB_CHROME_ACTIVE_DOCUMENT" file="../chrome_active_document.bmp" + type="BITMAP" /> + <include name="IDR_BHO" file="../bho.rgs" type="REGISTRY" /> + <include name="IDR_CHROMETAB" file="../chrome_tab.rgs" type="REGISTRY" /> + <include name="IDR_CHROMEPROTOCOL" file="../chrome_protocol.rgs" type="REGISTRY" /> + <include name="IDR_CHROMEACTIVEDOCUMENT" file="../chrome_active_document.rgs" + type="REGISTRY" /> + <include name="IDR_CHROMEFRAME" file="../chrome_frame_activex.rgs" type="REGISTRY" /> + <include name="IDR_CHROMEFRAME_NPAPI" file="../chrome_frame_npapi.rgs" type="REGISTRY" /> + </includes> + </release> +</grit> diff --git a/chrome_frame/resources/chrome_frame_strings.grd b/chrome_frame/resources/chrome_frame_strings.grd new file mode 100644 index 0000000..39bcfd9 --- /dev/null +++ b/chrome_frame/resources/chrome_frame_strings.grd @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +source code is governed by a BSD-style license that can be found in the LICENSE +file. +--> + +<!-- Definitions of resources that will be translated for each locale. +--> + +<grit base_dir="." latest_public_release="0" current_release="1" + source_lang_id="en" enc_check="möl"> + <outputs> + <output filename="grit/chrome_frame_strings.h" type="rc_header"> + <emit emit_type='prepend'></emit> + </output> + <output filename="chrome_frame_strings.rc" type="rc_all" lang="en" /> + </outputs> + <translations> + <!-- + <file path="chrome_frame_strings_en-GB.xtb" lang="en-GB" /> + ... + --> + </translations> + <release seq="1" allow_pseudo="false"> + <messages fallback_to_english="true" first_id="30000"> + + <!-- Menus --> + <message name="IDS_CHROME_FRAME_MENU_ABOUT" desc="About Chrome Frame label"> + About Chrome Frame... + </message> + + <!-- General application strings --> + <message name="IDS_CHROME_FRAME_NAME" desc="Official plugin name."> + Google Chrome Frame + </message> + </messages> + </release> +</grit> diff --git a/chrome_frame/resources/structured_resources.rc b/chrome_frame/resources/structured_resources.rc new file mode 100644 index 0000000..22e0337 --- /dev/null +++ b/chrome_frame/resources/structured_resources.rc @@ -0,0 +1,24 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_FIND_DIALOG DIALOGEX 0, 0, 278, 60 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +EXSTYLE WS_EX_CONTROLPARENT +CAPTION "Find" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + EDITTEXT IDC_FIND_TEXT,51,7,154,14,ES_AUTOHSCROLL + DEFPUSHBUTTON "&Find Next",IDOK,221,7,50,14 + PUSHBUTTON "Cancel",IDCANCEL,221,24,50,14 + CONTROL "Match &case",IDC_MATCH_CASE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,24,52,10 + GROUPBOX "Direction",IDC_STATIC,85,24,119,24 + CONTROL "&Down",IDC_DIRECTION_DOWN,"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,101,34,34,10 + CONTROL "&Up",IDC_DIRECTION_UP,"Button",BS_AUTORADIOBUTTON,155,34,38,10 + LTEXT "Fi&nd what:",IDC_STATIC,6,7,35,8 +END diff --git a/chrome_frame/resources/tlb_resource.rc b/chrome_frame/resources/tlb_resource.rc new file mode 100644 index 0000000..b16c9d4 --- /dev/null +++ b/chrome_frame/resources/tlb_resource.rc @@ -0,0 +1,68 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// NOTE(slightlyoff): the below is generated, and apparently, magical. +// Seemingly innocuous edits totally destroy registration of the DLL. +// Edit at your own peril. + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "1 TYPELIB ""chrome_tab.tlb""\r\n" + "\0" +END +#else +#include "chrome_tab_version.rc" +#endif // APSTUDIO_INVOKED + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// +1 TYPELIB "chrome_tab.tlb" + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED |