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

Unified Diff: chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc

Issue 1784533003: [Extensions UI Cocoa] Make disabled actions respond to the keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Linux compile fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.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/extensions/extension_action_platform_delegate_views.cc
diff --git a/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc b/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
index a3d97c00598462531c3986a616ecd9479cfd9576..1a21af9d6926a7de6dbedc59ecd636bc9e8b93a7 100644
--- a/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
+++ b/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
@@ -97,6 +97,12 @@ void ExtensionActionPlatformDelegateViews::CloseOverflowMenu() {
app_menu_button->CloseMenu();
}
+void ExtensionActionPlatformDelegateViews::ShowContextMenu() {
+ views::View* view = GetDelegateViews()->GetAsView();
+ view->context_menu_controller()->ShowContextMenuForView(
+ view, view->GetKeyboardContextMenuLocation(), ui::MENU_SOURCE_NONE);
+}
+
void ExtensionActionPlatformDelegateViews::Observe(
int type,
const content::NotificationSource& source,
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698