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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.cc

Issue 106713002: Move LaunchContainer enum to extension_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" 5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/desktop_background/user_wallpaper_delegate.h" 9 #include "ash/desktop_background/user_wallpaper_delegate.h"
10 #include "ash/root_window_controller.h" 10 #include "ash/root_window_controller.h"
11 #include "ash/shelf/shelf_widget.h" 11 #include "ash/shelf/shelf_widget.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/shell_delegate.h" 13 #include "ash/shell_delegate.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/prefs/pref_service.h" 16 #include "base/prefs/pref_service.h"
17 #include "chrome/browser/extensions/context_menu_matcher.h" 17 #include "chrome/browser/extensions/context_menu_matcher.h"
18 #include "chrome/browser/extensions/launch_util.h"
19 #include "chrome/browser/fullscreen.h" 18 #include "chrome/browser/fullscreen.h"
20 #include "chrome/browser/prefs/incognito_mode_prefs.h" 19 #include "chrome/browser/prefs/incognito_mode_prefs.h"
21 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 21 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
23 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 22 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
24 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/extensions/extension_constants.h"
25 #include "content/public/common/context_menu_params.h" 25 #include "content/public/common/context_menu_params.h"
26 #include "grit/ash_strings.h" 26 #include "grit/ash_strings.h"
27 #include "grit/generated_resources.h" 27 #include "grit/generated_resources.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 29
30 namespace { 30 namespace {
31 31
32 bool MenuItemHasLauncherContext(const extensions::MenuItem* item) { 32 bool MenuItemHasLauncherContext(const extensions::MenuItem* item) {
33 return item->contexts().Contains(extensions::MenuItem::LAUNCHER); 33 return item->contexts().Contains(extensions::MenuItem::LAUNCHER);
34 } 34 }
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 case MENU_CHANGE_WALLPAPER: 270 case MENU_CHANGE_WALLPAPER:
271 ash::Shell::GetInstance()->user_wallpaper_delegate()-> 271 ash::Shell::GetInstance()->user_wallpaper_delegate()->
272 OpenSetWallpaperPage(); 272 OpenSetWallpaperPage();
273 break; 273 break;
274 #endif 274 #endif
275 default: 275 default:
276 extension_items_->ExecuteCommand(command_id, NULL, 276 extension_items_->ExecuteCommand(command_id, NULL,
277 content::ContextMenuParams()); 277 content::ContextMenuParams());
278 } 278 }
279 } 279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698