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

Unified Diff: ash/shell.cc

Issue 11092034: Add Wallpaper option to launcher context menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace, Null Check, Comment Update Created 8 years, 2 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/shell.h ('k') | ash/shell_context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 9de3e0918b66331d66c866ee55f098d6613fafdd..95b6f9d1fc074465b9c90c76805d54667cd16d1d 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -25,7 +25,6 @@
#include "ash/magnifier/magnification_controller.h"
#include "ash/root_window_controller.h"
#include "ash/screen_ash.h"
-#include "ash/shell_context_menu.h"
#include "ash/shell_delegate.h"
#include "ash/shell_factory.h"
#include "ash/shell_window_ids.h"
@@ -390,7 +389,6 @@ void Shell::Init() {
nested_dispatcher_controller_.reset(new NestedDispatcherController);
accelerator_controller_.reset(new AcceleratorController);
#endif
- shell_context_menu_.reset(new internal::ShellContextMenu);
// The order in which event filters are added is significant.
user_activity_detector_.reset(new UserActivityDetector);
@@ -523,16 +521,15 @@ void Shell::RemoveEnvEventFilter(aura::EventFilter* filter) {
aura::Env::GetInstance()->RemovePreTargetHandler(filter);
}
-void Shell::ShowBackgroundMenu(views::Widget* widget,
- const gfx::Point& location) {
+void Shell::ShowContextMenu(const gfx::Point& location) {
// No context menus if user have not logged in.
if (!delegate_.get() || !delegate_->IsUserLoggedIn())
return;
// No context menus when screen is locked.
if (IsScreenLocked())
return;
- if (shell_context_menu_.get())
- shell_context_menu_->ShowMenu(widget, location);
+ if (launcher())
+ launcher()->ShowContextMenu(location);
}
void Shell::ToggleAppList() {
« no previous file with comments | « ash/shell.h ('k') | ash/shell_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698