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

Unified Diff: ui/base/cocoa/controls/hyperlink_text_view.mm

Issue 1091173005: Removed the context menu in kiosk mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable the context menu in kiosk mode Created 5 years, 6 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
Index: ui/base/cocoa/controls/hyperlink_text_view.mm
diff --git a/ui/base/cocoa/controls/hyperlink_text_view.mm b/ui/base/cocoa/controls/hyperlink_text_view.mm
index 092c096e9934d6a0fb2676de28460c4a2e6dacea..b0512166910950ed5586259149514dbf854392d2 100644
--- a/ui/base/cocoa/controls/hyperlink_text_view.mm
+++ b/ui/base/cocoa/controls/hyperlink_text_view.mm
@@ -75,6 +75,10 @@ const float kTextBaselineShift = -1.0;
[self fixupCursor];
}
+- (void)rightMouseDown:(NSEvent*)e {
+ [self fixupCursor];
Peter Kasting 2015/06/15 20:16:34 Is this what you meant by trapping the right-mouse
frederic.jacob.78 2015/06/18 00:41:38 Sorry, Yes that what I call trapping. As I did not
frederic.jacob.78 2015/06/24 18:07:53 Acknowledged.
+}
+
- (void)cursorUpdate:(NSEvent*)e {
[super cursorUpdate:e];
[self fixupCursor];

Powered by Google App Engine
This is Rietveld 408576698