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

Side by Side Diff: ios/shared/chrome/browser/ui/tools_menu/tools_menu_configuration.h

Issue 2894513002: Adding tools menu responsiveness metric. (Closed)
Patch Set: Tweak to metric description summary Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_ 5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_
6 #define IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_ 6 #define IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 10
(...skipping 26 matching lines...) Expand all
37 @property(nonatomic, assign) UIButton* toolsMenuButton; 37 @property(nonatomic, assign) UIButton* toolsMenuButton;
38 // Menu's origin relative to the |displayView|'s coordinate system, calculated 38 // Menu's origin relative to the |displayView|'s coordinate system, calculated
39 // from |toolsMenuButton| and |displayView|. 39 // from |toolsMenuButton| and |displayView|.
40 @property(nonatomic, readonly) CGRect sourceRect; 40 @property(nonatomic, readonly) CGRect sourceRect;
41 // Image insets that should be applied to the tools button if it is displayed, 41 // Image insets that should be applied to the tools button if it is displayed,
42 // calculated from |toolsMenuButton|. 42 // calculated from |toolsMenuButton|.
43 @property(nonatomic, readonly) UIEdgeInsets toolsButtonInsets; 43 @property(nonatomic, readonly) UIEdgeInsets toolsButtonInsets;
44 // Notifier for changes to the reading list requiring the menu to be updated. 44 // Notifier for changes to the reading list requiring the menu to be updated.
45 // Menus needing to be updated should set themselves as this object's delegate. 45 // Menus needing to be updated should set themselves as this object's delegate.
46 @property(nonatomic, assign) ReadingListMenuNotifier* readingListMenuNotifier; 46 @property(nonatomic, assign) ReadingListMenuNotifier* readingListMenuNotifier;
47 // Records the time that the tools menu was requested; value is the time
48 // interval since the NSDate referenceDate.
49 @property(nonatomic, assign) NSTimeInterval requestStartTime;
47 50
48 // Initialize a ToolsMenuContext instance with default values. |displayView| is 51 // Initialize a ToolsMenuContext instance with default values. |displayView| is
49 // the weakly-held parent view within which the popup tools menu using this 52 // the weakly-held parent view within which the popup tools menu using this
50 // context will be displayed. 53 // context will be displayed.
51 - (instancetype)initWithDisplayView:(UIView*)displayView 54 - (instancetype)initWithDisplayView:(UIView*)displayView
52 NS_DESIGNATED_INITIALIZER; 55 NS_DESIGNATED_INITIALIZER;
53 - (instancetype)init NS_UNAVAILABLE; 56 - (instancetype)init NS_UNAVAILABLE;
54 57
55 @end 58 @end
56 59
57 #endif // IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_ 60 #endif // IOS_SHARED_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698