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

Side by Side Diff: chrome/browser/ui/app_list/extension_app_context_menu.cc

Issue 1772513002: Add frameId to contextMenus.onClicked / onclick. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/app_list/extension_app_context_menu.h" 5 #include "chrome/browser/ui/app_list/extension_app_context_menu.h"
6 6
7 #include "chrome/browser/extensions/context_menu_matcher.h" 7 #include "chrome/browser/extensions/context_menu_matcher.h"
8 #include "chrome/browser/extensions/extension_util.h" 8 #include "chrome/browser/extensions/extension_util.h"
9 #include "chrome/browser/extensions/menu_manager.h" 9 #include "chrome/browser/extensions/menu_manager.h"
10 #include "chrome/browser/prefs/incognito_mode_prefs.h" 10 #include "chrome/browser/prefs/incognito_mode_prefs.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 ? extensions::LAUNCH_TYPE_REGULAR 230 ? extensions::LAUNCH_TYPE_REGULAR
231 : extensions::LAUNCH_TYPE_WINDOW; 231 : extensions::LAUNCH_TYPE_WINDOW;
232 } 232 }
233 controller()->SetExtensionLaunchType(profile(), app_id(), launch_type); 233 controller()->SetExtensionLaunchType(profile(), app_id(), launch_type);
234 } else if (command_id == OPTIONS) { 234 } else if (command_id == OPTIONS) {
235 controller()->ShowOptionsPage(profile(), app_id()); 235 controller()->ShowOptionsPage(profile(), app_id());
236 } else if (command_id == UNINSTALL) { 236 } else if (command_id == UNINSTALL) {
237 controller()->UninstallApp(profile(), app_id()); 237 controller()->UninstallApp(profile(), app_id());
238 } else if (extensions::ContextMenuMatcher::IsExtensionsCustomCommandId( 238 } else if (extensions::ContextMenuMatcher::IsExtensionsCustomCommandId(
239 command_id)) { 239 command_id)) {
240 extension_menu_items_->ExecuteCommand(command_id, nullptr, 240 extension_menu_items_->ExecuteCommand(command_id, nullptr, nullptr,
sky 2016/03/09 22:44:40 Don't extensions have an associated RFH?
robwu 2016/03/09 22:52:20 It seems that this context menu item is context-le
241 content::ContextMenuParams()); 241 content::ContextMenuParams());
242 } else if (command_id == MENU_NEW_WINDOW) { 242 } else if (command_id == MENU_NEW_WINDOW) {
243 controller()->CreateNewWindow(profile(), false); 243 controller()->CreateNewWindow(profile(), false);
244 } else if (command_id == MENU_NEW_INCOGNITO_WINDOW) { 244 } else if (command_id == MENU_NEW_INCOGNITO_WINDOW) {
245 controller()->CreateNewWindow(profile(), true); 245 controller()->CreateNewWindow(profile(), true);
246 } else { 246 } else {
247 AppContextMenu::ExecuteCommand(command_id, event_flags); 247 AppContextMenu::ExecuteCommand(command_id, event_flags);
248 } 248 }
249 } 249 }
250 250
251 } // namespace app_list 251 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698