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

Unified Diff: ui/base/ios/cru_context_menu_controller.h

Issue 1103743002: Use UIAlertController on iOS8 for Context Menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/ios/cru_context_menu_controller.h
diff --git a/ui/base/ios/cru_context_menu_controller.h b/ui/base/ios/cru_context_menu_controller.h
index 66fdf9d86c1b7467adb6dfc1a53900e84345a0d0..cb966fa00cdeb5618a884ed969e6cab36776040f 100644
--- a/ui/base/ios/cru_context_menu_controller.h
+++ b/ui/base/ios/cru_context_menu_controller.h
@@ -11,8 +11,11 @@
// Abstracts displaying context menus for all device form factors, given a
// CRUContextMenuHolder with the title and action to associate to each menu
// item. Will show a sheet on the phone and use a popover on a tablet.
-@interface CRUContextMenuController : NSObject<UIActionSheetDelegate,
- UIPopoverControllerDelegate>
+@interface CRUContextMenuController : NSObject
+
+// Whether the context menu is visible.
+@property(nonatomic, readonly, getter=isVisible) BOOL visible;
+
// Displays a context menu. If on a tablet, |localPoint| is the point in
// |view|'s coordinates to show the popup. If a phone, |localPoint| is unused
// since the display is a sheet, but |view| is still used to attach the sheet to
@@ -22,13 +25,6 @@
atPoint:(CGPoint)localPoint
inView:(UIView*)view;
-// Returns whether the context menu is visible.
-- (BOOL)isVisible;
-
-@end
-
-@interface CRUContextMenuController (UsedForTesting)
-@property (readonly) UIActionSheet* sheet;
@end
#endif // UI_BASE_IOS_CRU_CONTEXT_MENU_CONTROLLER_H_
« no previous file with comments | « no previous file | ui/base/ios/cru_context_menu_controller.mm » ('j') | ui/base/ios/cru_context_menu_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698