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

Unified Diff: ash/launcher/launcher_view.cc

Issue 9854009: Add tooltip text for chrome shortcut (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add method to ash_shell Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/launcher/launcher_delegate.h ('k') | ash/shell/launcher_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 44ac922a42b86ddec5ad2b1ddc3b141cc00ade55..9fba2fe7cb3fcad2bbd92fbb754ee50f2f0bfce7 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -28,6 +28,7 @@
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/menu/menu_model_adapter.h"
#include "ui/views/controls/menu/menu_runner.h"
+#include "ui/views/widget/root_view.h"
#include "ui/views/widget/widget.h"
using ui::Animation;
@@ -683,7 +684,7 @@ string16 LauncherView::GetAccessibleName(const views::View* view) {
return l10n_util::GetStringUTF16(IDS_AURA_APP_LIST_TITLE);
case TYPE_BROWSER_SHORTCUT:
- return l10n_util::GetStringUTF16(IDS_AURA_CYCLER_TITLE);
+ return l10n_util::GetStringUTF16(IDS_AURA_NEW_TAB);
}
return string16();
@@ -716,7 +717,10 @@ void LauncherView::ButtonPressed(views::Button* sender,
break;
case TYPE_BROWSER_SHORTCUT:
- delegate_->CreateNewTab();
+ if (event.flags() & ui::EF_CONTROL_DOWN)
+ delegate_->CreateNewWindow();
+ else
+ delegate_->CreateNewTab();
break;
}
}
« no previous file with comments | « ash/launcher/launcher_delegate.h ('k') | ash/shell/launcher_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698