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

Side by Side Diff: ios/chrome/browser/ui/contextual_search/contextual_search_panel_view.h

Issue 2824493002: Reland of [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: fix test 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_H_
6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 #import "ios/chrome/browser/ui/contextual_search/panel_configuration.h" 9 #import "ios/chrome/browser/ui/contextual_search/panel_configuration.h"
10 10
11 @protocol ContextualSearchPanelMotionObserver; 11 @protocol ContextualSearchPanelMotionObserver;
12 @protocol ContextualSearchPanelTapHandler; 12 @protocol ContextualSearchPanelTapHandler;
13 13
14 // A view designed to sit "on top" of the frontmost tab in a range of positions, 14 // A view designed to sit "on top" of the frontmost tab in a range of positions,
15 // with content can position controlled by a ContextualSearchPanelController. 15 // with content can position controlled by a ContextualSearchPanelController.
16 // Generally speaking each BrowserViewController will own both the panel view 16 // Generally speaking each BrowserViewController will own both the panel view
17 // and panel controller object. 17 // and panel controller object.
18 @interface ContextualSearchPanelView : UIView 18 @interface ContextualSearchPanelView : UIView
19 19
20 // Current state. 20 // Current state.
21 @property(nonatomic, assign) ContextualSearch::PanelState state; 21 @property(nonatomic, assign) ContextualSearch::PanelState state;
22 // Panel configuration, for motion observers that want to do different 22 // Panel configuration, for motion observers that want to do different
23 // computations around panel state and position. 23 // computations around panel state and position.
24 @property(nonatomic, readonly) PanelConfiguration* configuration; 24 @property(nonatomic, strong, readonly) PanelConfiguration* configuration;
25 25
26 // Create a panel view. It will need to have a delegate and controller assigned 26 // Create a panel view. It will need to have a delegate and controller assigned
27 // to do anything useful. 27 // to do anything useful.
28 - (instancetype)initWithConfiguration:(PanelConfiguration*)configuration 28 - (instancetype)initWithConfiguration:(PanelConfiguration*)configuration
29 NS_DESIGNATED_INITIALIZER; 29 NS_DESIGNATED_INITIALIZER;
30 30
31 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; 31 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
32 32
33 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; 33 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
34 34
(...skipping 11 matching lines...) Expand all
46 46
47 // Inform the receiver it is about to promote to be tab-sized; it will inform 47 // Inform the receiver it is about to promote to be tab-sized; it will inform
48 // any obsevers. 48 // any obsevers.
49 - (void)prepareForPromotion; 49 - (void)prepareForPromotion;
50 // Have the receiver adjust its frame to match its superview's bounds, 50 // Have the receiver adjust its frame to match its superview's bounds,
51 // vertically offset by |offset| points from the y-origin. 51 // vertically offset by |offset| points from the y-origin.
52 - (void)promoteToMatchSuperviewWithVerticalOffset:(CGFloat)offset; 52 - (void)promoteToMatchSuperviewWithVerticalOffset:(CGFloat)offset;
53 @end 53 @end
54 54
55 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_ H_ 55 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698