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

Unified Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.cc

Issue 9132004: Makes Ctrl-Shift-L work in AppList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed accelerator_table Created 8 years, 11 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 | « chrome/browser/ui/views/aura/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/aura/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
index 681f97a1489023fccf69da8663a63e6cf85b4fa9..68066ca965bcf9742780758b5c8b49376687ea19 100644
--- a/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/views/aura/chrome_shell_delegate.cc
@@ -19,6 +19,10 @@
#include "grit/theme_resources.h"
#include "ui/aura/window.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
+#include "chrome/browser/chromeos/dbus/power_manager_client.h"
+#endif
namespace {
// Returns a list of Aura windows from a BrowserList, using either a
@@ -88,6 +92,13 @@ views::Widget* ChromeShellDelegate::CreateStatusArea() {
return status_area_widget;
}
+#if defined(OS_CHROMEOS)
+void ChromeShellDelegate::LockScreen() {
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
+ NotifyScreenLockRequested();
+}
+#endif
+
void ChromeShellDelegate::BuildAppListModel(ash::AppListModel* model) {
AppListModelBuilder builder(ProfileManager::GetDefaultProfile(),
model);
« no previous file with comments | « chrome/browser/ui/views/aura/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698