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

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

Issue 2700783002: s/\bArc\b/ARC/g for ARC related code. (Closed)
Patch Set: Address ARC++ Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/common/shelf/shelf_model.h" 9 #include "ash/common/shelf/shelf_model.h"
10 #include "ash/common/shelf/wm_shelf.h" 10 #include "ash/common/shelf/wm_shelf.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 LauncherContextMenu* LauncherContextMenu::Create( 43 LauncherContextMenu* LauncherContextMenu::Create(
44 ChromeLauncherControllerImpl* controller, 44 ChromeLauncherControllerImpl* controller,
45 const ash::ShelfItem* item, 45 const ash::ShelfItem* item,
46 ash::WmShelf* wm_shelf) { 46 ash::WmShelf* wm_shelf) {
47 DCHECK(controller); 47 DCHECK(controller);
48 DCHECK(wm_shelf); 48 DCHECK(wm_shelf);
49 // Create DesktopShellLauncherContextMenu if no item is selected. 49 // Create DesktopShellLauncherContextMenu if no item is selected.
50 if (!item || item->id == 0) 50 if (!item || item->id == 0)
51 return new DesktopShellLauncherContextMenu(controller, item, wm_shelf); 51 return new DesktopShellLauncherContextMenu(controller, item, wm_shelf);
52 52
53 // Create ArcLauncherContextMenu if the item is an Arc app. 53 // Create ArcLauncherContextMenu if the item is an ARC app.
54 const std::string& app_id = controller->GetAppIDForShelfID(item->id); 54 const std::string& app_id = controller->GetAppIDForShelfID(item->id);
55 if (arc::IsArcItem(controller->profile(), app_id)) 55 if (arc::IsArcItem(controller->profile(), app_id))
56 return new ArcLauncherContextMenu(controller, item, wm_shelf); 56 return new ArcLauncherContextMenu(controller, item, wm_shelf);
57 57
58 // Create ExtensionLauncherContextMenu for the item. 58 // Create ExtensionLauncherContextMenu for the item.
59 return new ExtensionLauncherContextMenu(controller, item, wm_shelf); 59 return new ExtensionLauncherContextMenu(controller, item, wm_shelf);
60 } 60 }
61 61
62 LauncherContextMenu::LauncherContextMenu( 62 LauncherContextMenu::LauncherContextMenu(
63 ChromeLauncherControllerImpl* controller, 63 ChromeLauncherControllerImpl* controller,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 case MENU_PIN: 199 case MENU_PIN:
200 case MENU_AUTO_HIDE: 200 case MENU_AUTO_HIDE:
201 case MENU_ALIGNMENT_MENU: 201 case MENU_ALIGNMENT_MENU:
202 case MENU_CHANGE_WALLPAPER: 202 case MENU_CHANGE_WALLPAPER:
203 LauncherContextMenu::ExecuteCommand(command_id, event_flags); 203 LauncherContextMenu::ExecuteCommand(command_id, event_flags);
204 return true; 204 return true;
205 default: 205 default:
206 return false; 206 return false;
207 } 207 }
208 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698