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

Unified Diff: ios/chrome/browser/ui/context_menu/context_menu_holder.h

Issue 2005323002: Remove ContextMenuController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contextMenuWrangler
Patch Set: Created 4 years, 7 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: ios/chrome/browser/ui/context_menu/context_menu_holder.h
diff --git a/ios/chrome/browser/ui/context_menu/context_menu_holder.h b/ios/chrome/browser/ui/context_menu/context_menu_holder.h
deleted file mode 100644
index 94c054d88f9282d61fb4c758bca6fa38b171b415..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/context_menu/context_menu_holder.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_HOLDER_H_
-#define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_HOLDER_H_
-
-#import <Foundation/Foundation.h>
-
-#include "base/ios/block_types.h"
-
-// This class simply stores the information necessary to build a menu:
-// a menu title, a list of item titles and associated actions (blocks).
-@interface ContextMenuHolder : NSObject
-
-// Designated initializer.
-- (instancetype)init;
-
-// Menu title; can be nil.
-@property(nonatomic, copy) NSString* menuTitle;
-
-// A list of menu item titles in the order they will appear in the menu.
-@property(nonatomic, readonly, copy) NSArray* itemTitles;
-
-// A number of menu items.
-@property(nonatomic, readonly) NSUInteger itemCount;
-
-// Adds an item at the end of the menu.
-- (void)appendItemWithTitle:(NSString*)title action:(ProceduralBlock)action;
-
-// Adds an item at the end of the menu. If |dismissImmediately| is YES,
-// then tapping this item will cause the context menu to be dismissed without
-// any animation.
-- (void)appendItemWithTitle:(NSString*)title
- action:(ProceduralBlock)action
- dismissImmediately:(BOOL)dismissImmediately;
-
-// Performs the action for the item at the given index.
-- (void)performActionAtIndex:(NSUInteger)index;
-
-// Returns YES if the action at |index| should cause the context menu to
-// dismiss without any animation.
-- (BOOL)shouldDismissImmediatelyOnClickedAtIndex:(NSUInteger)index;
-
-@end
-
-#endif // IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_HOLDER_H_

Powered by Google App Engine
This is Rietveld 408576698