summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 05:58:27 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-06 05:58:27 +0000
commit81dd43d307a0ba9fe56803ad6ede89996b75d9a0 (patch)
tree74b05fcdd25918cca427e89ed2578dd91d8a4a28
parent90547d7672c25901dea55112c3d1bd14fcfb5641 (diff)
downloadchromium_src-81dd43d307a0ba9fe56803ad6ede89996b75d9a0.zip
chromium_src-81dd43d307a0ba9fe56803ad6ede89996b75d9a0.tar.gz
chromium_src-81dd43d307a0ba9fe56803ad6ede89996b75d9a0.tar.bz2
ash: Rename "Autohide launcher" item.
This patch renames: - "Autohide launcher" to "Autohide shelf" - "Launcher position" to "Shelf position". BUG=263531 TEST=out_cros/Debug/chrome --disable-setuid-sandbox --ash-use-alternate-shelf --show-launcher-alignment-menu R=jamescook@chromium.org,sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/22007003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215808 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ash/ash_strings.grd20
-rw-r--r--ash/launcher/launcher_alignment_menu.cc12
-rw-r--r--ash/launcher/launcher_view.cc2
-rw-r--r--ash/launcher/overflow_button.cc7
-rw-r--r--ash/shell/context_menu.cc4
-rw-r--r--chrome/app/generated_resources.grd8
-rw-r--r--chrome/browser/about_flags.cc6
-rw-r--r--chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc4
-rw-r--r--chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc2
-rw-r--r--chrome/browser/ui/ash/launcher/launcher_context_menu.cc8
-rw-r--r--chrome/common/chrome_switches.cc4
-rw-r--r--chrome/common/chrome_switches.h2
12 files changed, 37 insertions, 42 deletions
diff --git a/ash/ash_strings.grd b/ash/ash_strings.grd
index 1334f17..f43ba86 100644
--- a/ash/ash_strings.grd
+++ b/ash/ash_strings.grd
@@ -170,26 +170,26 @@ This file contains the strings for ash.
<message name="IDS_AURA_APP_LIST_SYNCING_TITLE" desc="The title used for the Aura app list in the launcher to indicate loading/syncing apps.">
Syncing apps...
</message>
- <message name="IDS_AURA_LAUNCHER_OVERFLOW_NAME" desc="The title used for the Aura overflow button in the launcher">
+ <message name="IDS_ASH_SHELF_OVERFLOW_NAME" desc="The title used for the Ash overflow button in the shelf">
Overflow Button
</message>
- <message name="IDS_AURA_LAUNCHER_CONTEXT_MENU_AUTO_HIDE" desc="Title of the menu item in the context menu for auto-hiding the launcher when the current window is not maximized">
- Autohide launcher
+ <message name="IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE" desc="Title of the menu item in the context menu for auto-hiding the shelf when the current window is not maximized">
+ Autohide shelf
</message>
- <message name="IDS_AURA_LAUNCHER_CONTEXT_MENU_POSITION" desc="Title of the menu item in the context menu for aligning the launcher">
- Launcher position
+ <message name="IDS_ASH_SHELF_CONTEXT_MENU_POSITION" desc="Title of the menu item in the context menu for aligning the shelf">
+ Shelf position
</message>
- <message name="IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_BOTTOM" desc="Title of the menu item in the context menu for aligning the launcher to the bottom of the screen">
+ <message name="IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_BOTTOM" desc="Title of the menu item in the context menu for aligning the shelf to the bottom of the screen">
Bottom
</message>
- <message name="IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_LEFT" desc="Title of the menu item in the context menu for aligning the launcher to the left of the screen">
+ <message name="IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_LEFT" desc="Title of the menu item in the context menu for aligning the shelf to the left of the screen">
Left
</message>
- <message name="IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_RIGHT" desc="Title of the menu item in the context menu for aligning the launcher to the right of the screen">
+ <message name="IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_RIGHT" desc="Title of the menu item in the context menu for aligning the shelf to the right of the screen">
Right
</message>
- <message name="IDS_ASH_LAUNCHER_ACCESSIBLE_NAME" desc="The accessible name of the launcher.">
- Launcher
+ <message name="IDS_ASH_SHELF_ACCESSIBLE_NAME" desc="The accessible name of the shelf.">
+ Shelf
</message>
<message name="IDS_AURA_SET_DESKTOP_WALLPAPER" desc="The label used for change wallpaper in context menu">
diff --git a/ash/launcher/launcher_alignment_menu.cc b/ash/launcher/launcher_alignment_menu.cc
index 13a92bc..8d6b6cf 100644
--- a/ash/launcher/launcher_alignment_menu.cc
+++ b/ash/launcher/launcher_alignment_menu.cc
@@ -13,26 +13,24 @@
namespace ash {
-LauncherAlignmentMenu::LauncherAlignmentMenu(
- aura::RootWindow* root)
+LauncherAlignmentMenu::LauncherAlignmentMenu(aura::RootWindow* root)
: ui::SimpleMenuModel(NULL),
root_window_(root) {
DCHECK(root_window_);
int align_group_id = 1;
set_delegate(this);
AddRadioItemWithStringId(MENU_ALIGN_LEFT,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_LEFT,
+ IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_LEFT,
align_group_id);
AddRadioItemWithStringId(MENU_ALIGN_BOTTOM,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_BOTTOM,
+ IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_BOTTOM,
align_group_id);
AddRadioItemWithStringId(MENU_ALIGN_RIGHT,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_ALIGN_RIGHT,
+ IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_RIGHT,
align_group_id);
}
-LauncherAlignmentMenu::~LauncherAlignmentMenu() {
-}
+LauncherAlignmentMenu::~LauncherAlignmentMenu() {}
bool LauncherAlignmentMenu::IsCommandIdChecked(int command_id) const {
return internal::ShelfLayoutManager::ForLauncher(root_window_)->
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 015ba3f..ea027f6 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -1234,7 +1234,7 @@ views::FocusTraversable* LauncherView::GetPaneFocusTraversable() {
void LauncherView::GetAccessibleState(ui::AccessibleViewState* state) {
state->role = ui::AccessibilityTypes::ROLE_TOOLBAR;
- state->name = l10n_util::GetStringUTF16(IDS_ASH_LAUNCHER_ACCESSIBLE_NAME);
+ state->name = l10n_util::GetStringUTF16(IDS_ASH_SHELF_ACCESSIBLE_NAME);
}
void LauncherView::OnGestureEvent(ui::GestureEvent* event) {
diff --git a/ash/launcher/overflow_button.cc b/ash/launcher/overflow_button.cc
index 1a4ad3a..8847468 100644
--- a/ash/launcher/overflow_button.cc
+++ b/ash/launcher/overflow_button.cc
@@ -55,13 +55,10 @@ OverflowButton::OverflowButton(views::ButtonListener* listener)
image_ = rb.GetImageNamed(IDR_AURA_LAUNCHER_OVERFLOW).ToImageSkia();
set_accessibility_focusable(true);
- SetAccessibleName(
- l10n_util::GetStringUTF16(IDS_AURA_LAUNCHER_OVERFLOW_NAME));
+ SetAccessibleName(l10n_util::GetStringUTF16(IDS_ASH_SHELF_OVERFLOW_NAME));
}
-
-OverflowButton::~OverflowButton() {
-}
+OverflowButton::~OverflowButton() {}
void OverflowButton::OnShelfAlignmentChanged() {
SchedulePaint();
diff --git a/ash/shell/context_menu.cc b/ash/shell/context_menu.cc
index bb70e7c..e1a62d1 100644
--- a/ash/shell/context_menu.cc
+++ b/ash/shell/context_menu.cc
@@ -21,9 +21,9 @@ ContextMenu::ContextMenu(aura::RootWindow* root)
DCHECK(root_window_);
set_delegate(this);
AddCheckItemWithStringId(MENU_AUTO_HIDE,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_AUTO_HIDE);
+ IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
AddSubMenuWithStringId(MENU_ALIGNMENT_MENU,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_POSITION,
+ IDS_ASH_SHELF_CONTEXT_MENU_POSITION,
&alignment_menu_);
}
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 860e3bd..81d8d29 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -7173,11 +7173,11 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_DOCKED_WINDOWS_DESCRIPTION" desc="Description for the flag to enable docked windows feature.">
Turns on docking of windows near screen edges, a feature that provides an easier way to interact with panel and other small windows.
</message>
- <message name="IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_NAME" desc="Name for the flag to show a menu that lets you change the alignment of the launcher.">
- Show launcher alignment menu.
+ <message name="IDS_FLAGS_SHOW_SHELF_ALIGNMENT_MENU_NAME" desc="Name for the flag to show a menu that lets you change the alignment of the shelf.">
+ Show shelf alignment menu.
</message>
- <message name="IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_DESCRIPTION" desc="Description for the flag to show a menu that lets you change the alignment of the launcher.">
- Enables a menu that allows changing the side the launcher is aligned to.
+ <message name="IDS_FLAGS_SHOW_SHELF_ALIGNMENT_MENU_DESCRIPTION" desc="Description for the flag to show a menu that lets you change the alignment of the shelf.">
+ Enables a menu that allows changing the side the shelf is aligned to.
</message>
<message name="IDS_FLAGS_FORCE_MAXIMIZE_MODE_NAME" desc="Name for the flag which forces the window manager to use maximized mode wherever possible.">
Always maximized mode
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index ef2a1cc..4df1f89 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1014,10 +1014,10 @@ const Experiment kExperiments[] = {
#if defined(USE_ASH)
{
"show-launcher-alignment-menu",
- IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_NAME,
- IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_DESCRIPTION,
+ IDS_FLAGS_SHOW_SHELF_ALIGNMENT_MENU_NAME,
+ IDS_FLAGS_SHOW_SHELF_ALIGNMENT_MENU_DESCRIPTION,
kOsAll,
- SINGLE_VALUE_TYPE(switches::kShowLauncherAlignmentMenu)
+ SINGLE_VALUE_TYPE(switches::kShowShelfAlignmentMenu)
},
{
"disable-minimize-on-second-launcher-item-click",
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc
index 1bdacb4..71b0881 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc
@@ -1396,7 +1396,7 @@ void ChromeLauncherControllerPerApp::UpdateAppLaunchersFromPref() {
int max_index = model_->item_count();
// Using the alternate shelf layout the App Icon should be the first item in
// the list thus start adding items at slot 1 (instead of slot 0).
- if(ash::switches::UseAlternateShelfLayout()) {
+ if (ash::switches::UseAlternateShelfLayout()) {
++index;
++max_index;
}
@@ -1501,7 +1501,7 @@ void ChromeLauncherControllerPerApp::SetShelfAutoHideBehaviorFromPrefs() {
void ChromeLauncherControllerPerApp::SetShelfAlignmentFromPrefs() {
if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kShowLauncherAlignmentMenu))
+ switches::kShowShelfAlignmentMenu))
return;
ash::Shell::RootWindowList root_windows = ash::Shell::GetAllRootWindows();
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
index abd2bf1..3c2360a 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc
@@ -1335,7 +1335,7 @@ void ChromeLauncherControllerPerBrowser::SetShelfAutoHideBehaviorFromPrefs() {
void ChromeLauncherControllerPerBrowser::SetShelfAlignmentFromPrefs() {
if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kShowLauncherAlignmentMenu))
+ switches::kShowShelfAlignmentMenu))
return;
ash::Shell::RootWindowList root_windows = ash::Shell::GetAllRootWindows();
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
index c6fcd6c..1d28300 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
@@ -141,13 +141,13 @@ void LauncherContextMenu::Init() {
// fullscreen because it is confusing when the preference appears not to
// apply.
if (!IsFullScreenMode()) {
- AddCheckItemWithStringId(
- MENU_AUTO_HIDE, IDS_AURA_LAUNCHER_CONTEXT_MENU_AUTO_HIDE);
+ AddCheckItemWithStringId(MENU_AUTO_HIDE,
+ IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kShowLauncherAlignmentMenu)) {
+ switches::kShowShelfAlignmentMenu)) {
AddSubMenuWithStringId(MENU_ALIGNMENT_MENU,
- IDS_AURA_LAUNCHER_CONTEXT_MENU_POSITION,
+ IDS_ASH_SHELF_CONTEXT_MENU_POSITION,
&launcher_alignment_menu_);
}
#if defined(OS_CHROMEOS)
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 40e19dd..072d504 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1257,8 +1257,8 @@ const char kShowAppList[] = "show-app-list";
// See kHideIcons.
const char kShowIcons[] = "show-icons";
-// If true the alignment of the launcher can be changed.
-const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu";
+// If true the alignment of the shelf can be changed.
+const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu";
// Marks a renderer as the signin process.
const char kSigninProcess[] = "signin-process";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 9d23e89..5ce615a 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -338,7 +338,7 @@ extern const char kSilentLaunch[];
extern const char kSetToken[];
extern const char kShowAppList[];
extern const char kShowIcons[];
-extern const char kShowLauncherAlignmentMenu[];
+extern const char kShowShelfAlignmentMenu[];
extern const char kSigninProcess[];
extern const char kSilentDumpOnDCHECK[];
extern const char kSimulateUpgrade[];