diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 23:52:03 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 23:52:03 +0000 |
commit | f253006b157f9c917fba21a7312290aaa2e889e7 (patch) | |
tree | 377183f9511bed141b5fd7a706c3407a122540d9 /chrome/app/generated_resources.grd | |
parent | dadacf06556b4f63a62ec3cea91d7fc5abccd67c (diff) | |
download | chromium_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/generated_resources.grd')
-rw-r--r-- | chrome/app/generated_resources.grd | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index 457e428..33e8fd4 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -361,6 +361,12 @@ each locale. --> <message name="IDS_NEWWINDOW" desc="The text label of the New Window menu item" > &New window </message> + <message name="IDS_NEWPROFILEWINDOW" desc="The text label of the New profile Window menu item" > + New window in &profile + </message> + <message name="IDS_NEWPROFILEWINDOW_OTHERPROFILE" desc="The text label of the sub menu item of New profile Window menu item to select a profile other than the ones displayed in the sub-menu items." > + Other... + </message> <message name="IDS_GOOFFTHERECORD" desc="The text label of the New incognito window menu item"> New &incognito window </message> @@ -2834,10 +2840,18 @@ each locale. --> desc="Title of the new tab page, this is only shown while loading, then the title comes from the page"> New Tab </message> + <message name="IDS_NEW_TAB_TITLE_WITH_PROFILE_NAME" + desc="Title of the new tab page with profile name, this is only shown while loading, then the title comes from the page"> + New Tab [<ph name="PROFILE_NAME">$1</ph>] + </message> <message name="IDS_NEW_TAB_MOST_VISITED" desc="The 'Most Visited' heading on the new tab page"> Most visited </message> + <message name="IDS_NEW_TAB_MOST_VISITED_WITH_PROFILE_NAME" + desc="The 'Most Visited' heading on the new tab page"> + Most visited [<ph name="PROFILE_NAME">$1</ph>] + </message> <message name="IDS_NEW_TAB_SEARCHES" desc="The 'Searches' heading on the new tab page"> Searches @@ -3144,7 +3158,29 @@ each locale. --> <message name="IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON" desc="Text on button that opens another dialog to choose a new directory for user data."> Choose Another Directory... </message> - + + <!-- User data directory profiles dialog --> + <message name="IDS_SELECT_PROFILE_DIALOG_TITLE" desc="Title of the dialog that lets the user select a profile to open a new window."> + Select a Profile + </message> + <message name="IDS_SELECT_PROFILE_DIALOG_LABEL_TEXT" desc="The label for the combo box that shows all the available profiles."> + Select a profile to open a new window + </message> + <message name="IDS_SELECT_PROFILE_DIALOG_NEW_PROFILE_ENTRY" desc="Text for an extra entry in the profiles combo box. The user can select this entry to create a new profile."> + <New Profile>... + </message> + + <!-- User data directory new profile dialog --> + <message name="IDS_NEW_PROFILE_DIALOG_TITLE" desc="Title of dialog that lets the user enter a new profile name to open new window."> + Enter a Profile Name + </message> + <message name="IDS_NEW_PROFILE_DIALOG_LABEL_TEXT" desc="The label for the text box that lets the user enter a new profile name."> + Enter a new profile name + </message> + <message name="IDS_NEW_PROFILE_DIALOG_CREATE_SHORTCUT_TEXT" desc="The label for the text box that lets the user enter a new profile name."> + Create a desktop shortcut for this profile + </message> + <!-- Advanced Section Titles --> <message name="IDS_OPTIONS_ADVANCED_SECTION_TITLE_PRIVACY"> Privacy |