summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_dll_resource.h
diff options
context:
space:
mode:
authormunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 23:52:03 +0000
committermunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 23:52:03 +0000
commitf253006b157f9c917fba21a7312290aaa2e889e7 (patch)
tree377183f9511bed141b5fd7a706c3407a122540d9 /chrome/app/chrome_dll_resource.h
parentdadacf06556b4f63a62ec3cea91d7fc5abccd67c (diff)
downloadchromium_src-f253006b157f9c917fba21a7312290aaa2e889e7.zip
chromium_src-f253006b157f9c917fba21a7312290aaa2e889e7.tar.gz
chromium_src-f253006b157f9c917fba21a7312290aaa2e889e7.tar.bz2
Chromium-MultiProfile-Prototype
Summary ======= Implement a prototype of multiple profiles in Chrome by utilizing the functionality of user-data-dir command line flag that already exists. A profile in this case is an umbrella for all user data including cookies, history, bookmarks, settings, etc. Each profile gives the user a separation of all these data elements. User Interface ============== - Wrench > "New window in profile" menu item, with sub-menu items. This new menu item has sub menu items for each existing profile, for up to 9 profiles, and one more sub menu item to launch a window in a new profile. The 9 sub-menu items also have the accelerators like CTRL + SHIFT + 1, CTRL + SHIFT + 2, etc. If there are more than 9 profiles, we will also show an extra sub-menu item, "Other...". - New Profile dialog box This dialog box is shown to the use when (s)he clicks Wrench > New window in profile > <New Profile>. It lets the user specify a profile name, and also shows a checkbox to create a desktop shortcut to launch Chrome in that profile. - Choose profile dialog box This dialog box lets the user select a profile from a drop down to open a new window in. It also has an item <New Profile> in the drop down, selecting which will show the new profile dialog box mentioned above. CTRL + M shortcut also launches this dialog box. Code Organization ================= chrome\browser\user_data_dir_profile_manager.h/.cc: This class provides an abstraction of profiles on top of the user data dir command line flag. chrome\browser\views\user_data_dir_new_profile_dialog.h/.cc New profile dialog box code. chrome\browser\views\user_data_dir_profiles_dialog.h/.cc Choose profile dialog box code. Review URL: http://codereview.chromium.org/12895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6333 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_dll_resource.h')
-rw-r--r--chrome/app/chrome_dll_resource.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/chrome/app/chrome_dll_resource.h b/chrome/app/chrome_dll_resource.h
index e26b47c..7b57ade 100644
--- a/chrome/app/chrome_dll_resource.h
+++ b/chrome/app/chrome_dll_resource.h
@@ -154,6 +154,27 @@
// Reserve space for 100 Spell Check languages - currently we have 30.
#define IDC_SPELLCHECKER_LANGUAGE_FIRST 32954
#define IDC_SPELLCHECKER_LANGUAGE_LAST 33054
+// We have a menu item for opening a new window in a specific profile, and it
+// has dynamic number of sub menu items. The number of sub menu items depends on
+// the number of existing profiles. But we only show menu items for nine
+// different profiles, plus a menu item for other than the nine profiles (if
+// there are more than nine profiles), plus a menu item for new profile.
+#define IDC_NEWPROFILEWINDOW 33055
+#define IDC_SELECT_PROFILE 33056
+#define IDC_NEW_PROFILE 33057
+// Define menu IDs for nine profiles to provide accelarators like CTRL +
+// SHIFT + 1, CTRL + SHIFT + 2, etc. for them.
+#define IDC_NEWPROFILEWINDOW_PROFILE1 33058
+#define IDC_NEWPROFILEWINDOW_PROFILE2 33059
+#define IDC_NEWPROFILEWINDOW_PROFILE3 33060
+#define IDC_NEWPROFILEWINDOW_PROFILE4 33061
+#define IDC_NEWPROFILEWINDOW_PROFILE5 33062
+#define IDC_NEWPROFILEWINDOW_PROFILE6 33063
+#define IDC_NEWPROFILEWINDOW_PROFILE7 33064
+#define IDC_NEWPROFILEWINDOW_PROFILE8 33065
+#define IDC_NEWPROFILEWINDOW_PROFILE9 33066
+#define IDC_NEWPROFILEWINDOW_MIN_ID IDC_NEWPROFILEWINDOW_PROFILE1
+#define IDC_NEWPROFILEWINDOW_MAX_ID IDC_NEWPROFILEWINDOW_PROFILE9
// Next default values for new objects
//
@@ -161,7 +182,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 3001
-#define _APS_NEXT_COMMAND_VALUE 32947
+#define _APS_NEXT_COMMAND_VALUE 33067
#define _APS_NEXT_CONTROL_VALUE 4017
#define _APS_NEXT_SYMED_VALUE 1001
#endif