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

Unified Diff: ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h

Issue 2815233002: [ios] Move ToolsMenuConfiguration to shared. (Closed)
Patch Set: Created 3 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: ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h b/ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h
deleted file mode 100644
index aaf14a124e072e465bf51a0bd010677b6c698345..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 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_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_
-#define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_
-
-#import <Foundation/Foundation.h>
-#import <UIKit/UIKit.h>
-
-@class ReadingListMenuNotifier;
-
-namespace web {
-enum class UserAgentType : short;
-} // namespace web
-
-// Configuation defining options that can be set to change the tools menu's
-// appearance. All boolean properties are set to NO, and |userAgentType| is set
-// to NONE by default.
-@interface ToolsMenuConfiguration : NSObject
-// Indicates that the menu is being shown while in the tab switcher.
-@property(nonatomic, getter=isInTabSwitcher) BOOL inTabSwitcher;
-// Indicates that the menu is being shown while there are no open tabs.
-@property(nonatomic, getter=hasNoOpenedTabs) BOOL noOpenedTabs;
-// Indicates that the menu is being shown while in incognito mode.
-@property(nonatomic, getter=isInIncognito) BOOL inIncognito;
-
-// Indicates that the menu is being shown while user agent is |userAgentType|.
-// If NONE, shows "Request Desktop Site" in disabled state.
-// If MOBILE, shows "Request Desktop Site" in enabled state.
-// If DESKTOP, shows "Request Mobile Site" in enabled state.
-@property(nonatomic, assign) web::UserAgentType userAgentType;
-
-// View that the menu will be displayed in.
-@property(nonatomic, readonly) UIView* displayView;
-// Button from which popup menu will be opened.
-@property(nonatomic, assign) UIButton* toolsMenuButton;
-// Menu's origin relative to the |displayView|'s coordinate system, calculated
-// from |toolsMenuButton| and |displayView|.
-@property(nonatomic, readonly) CGRect sourceRect;
-// Image insets that should be applied to the tools button if it is displayed,
-// calculated from |toolsMenuButton|.
-@property(nonatomic, readonly) UIEdgeInsets toolsButtonInsets;
-// Notifier for changes to the reading list requiring the menu to be updated.
-// Menus needing to be updated should set themselves as this object's delegate.
-@property(nonatomic, assign) ReadingListMenuNotifier* readingListMenuNotifier;
-
-// Initialize a ToolsMenuContext instance with default values. |displayView| is
-// the weakly-held parent view within which the popup tools menu using this
-// context will be displayed.
-- (instancetype)initWithDisplayView:(UIView*)displayView
- NS_DESIGNATED_INITIALIZER;
-- (instancetype)init NS_UNAVAILABLE;
-
-@end
-
-#endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_

Powered by Google App Engine
This is Rietveld 408576698