Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ceee/ie/common/rgs_helper.h

Issue 6041007: Move rgs_helper out of base to ceee since it's not used anywhere else.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ceee/ie/broker/broker.h ('k') | ceee/ie/ie.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Defines a map for adding variables to rgs files. This allows COM object 5 // Defines a map for adding variables to rgs files. This allows COM object
6 // classes to declare the values of these variables so that we don't need to 6 // classes to declare the values of these variables so that we don't need to
7 // copy/paste them and manually keep them in sync. 7 // copy/paste them and manually keep them in sync.
8 // To use this, declare the registry ID of your RGS file using 8 // To use this, declare the registry ID of your RGS file using
9 // the DECLARE_REGISTRY_RESOURCEID_EX macro, instead of the 9 // the DECLARE_REGISTRY_RESOURCEID_EX macro, instead of the
10 // DECLARE_REGISTRY_RESOURCEID, then add a registry map to your class 10 // DECLARE_REGISTRY_RESOURCEID, then add a registry map to your class
11 // using the registry map macros: 11 // using the registry map macros:
12 // BEGIN_REGISTRY_MAP(MyClassName) 12 // BEGIN_REGISTRY_MAP(MyClassName)
13 // REGMAP_ENTRY("NAME", "MyClassName Class") 13 // REGMAP_ENTRY("NAME", "MyClassName Class")
14 // REGMAP_ENTRY_UUID("CLSID", CLSID_MyClassName) 14 // REGMAP_ENTRY_UUID("CLSID", CLSID_MyClassName)
15 // END_REGISTRY_MAP() 15 // END_REGISTRY_MAP()
16 // 16 //
17 // You can then refer to the names above in your RGS file as 17 // You can then refer to the names above in your RGS file as
18 // variables %NAME% and %CLSID%, respectively. 18 // variables %NAME% and %CLSID%, respectively.
19 #ifndef BASE_WIN_RGS_HELPER_H_ 19 #ifndef CEEE_IE_COMMON_RGS_HELPER_H_
20 #define BASE_WIN_RGS_HELPER_H_ 20 #define CEEE_IE_COMMON_RGS_HELPER_H_
21 21
22 #include "base/string_util.h" 22 #include "base/string_util.h"
23 23
24 struct ATLRegmapEntryHelper : public _ATL_REGMAP_ENTRY { 24 struct ATLRegmapEntryHelper : public _ATL_REGMAP_ENTRY {
25 ATLRegmapEntryHelper() { 25 ATLRegmapEntryHelper() {
26 szKey = NULL; 26 szKey = NULL;
27 szData = NULL; 27 szData = NULL;
28 } 28 }
29 ATLRegmapEntryHelper(LPCOLESTR key, LPCOLESTR data) { 29 ATLRegmapEntryHelper(LPCOLESTR key, LPCOLESTR data) {
30 szKey = key; 30 szKey = key;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #define END_REGISTRY_MAP() ATLRegmapEntryHelper() };\ 79 #define END_REGISTRY_MAP() ATLRegmapEntryHelper() };\
80 return (_ATL_REGMAP_ENTRY*)map;\ 80 return (_ATL_REGMAP_ENTRY*)map;\
81 } 81 }
82 82
83 #define DECLARE_REGISTRY_RESOURCEID_EX(x)\ 83 #define DECLARE_REGISTRY_RESOURCEID_EX(x)\
84 static HRESULT WINAPI UpdateRegistry(BOOL bRegister) {\ 84 static HRESULT WINAPI UpdateRegistry(BOOL bRegister) {\
85 return ATL::_pAtlModule->UpdateRegistryFromResource((UINT)x, bRegister, \ 85 return ATL::_pAtlModule->UpdateRegistryFromResource((UINT)x, bRegister, \
86 _GetRegistryMap());\ 86 _GetRegistryMap());\
87 } 87 }
88 88
89 #endif // BASE_WIN_RGS_HELPER_H_ 89 #endif // CEEE_IE_COMMON_RGS_HELPER_H_
OLDNEW
« no previous file with comments | « ceee/ie/broker/broker.h ('k') | ceee/ie/ie.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698