OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_NTP_INCOGNITO_PANEL_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" | 10 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" |
11 | 11 |
12 namespace ios { | 12 namespace ios { |
13 class ChromeBrowserState; | 13 class ChromeBrowserState; |
14 } | 14 } |
15 | 15 |
16 @protocol UrlLoader; | 16 @protocol UrlLoader; |
17 @protocol WebToolbarDelegate; | 17 @protocol WebToolbarDelegate; |
18 | 18 |
19 @interface IncognitoPanelController : NSObject<NewTabPagePanelProtocol> | 19 @interface IncognitoPanelController : NSObject<NewTabPagePanelProtocol> |
20 | 20 |
21 // The view that is displaying the incognito* panel. | 21 // The view that is displaying the incognito* panel. |
22 @property(nonatomic, readonly) UIView* view; | 22 @property(weak, nonatomic, readonly) UIView* view; |
23 | 23 |
24 // Init with the given loader object. |loader| may be nil, but isn't | 24 // Init with the given loader object. |loader| may be nil, but isn't |
25 // retained so it must outlive this controller. |browserState| may not be null. | 25 // retained so it must outlive this controller. |browserState| may not be null. |
26 // |webToolbarDelegate| is used to fade the toolbar views on page scroll. | 26 // |webToolbarDelegate| is used to fade the toolbar views on page scroll. |
27 - (id)initWithLoader:(id<UrlLoader>)loader | 27 - (id)initWithLoader:(id<UrlLoader>)loader |
28 browserState:(ios::ChromeBrowserState*)browserState | 28 browserState:(ios::ChromeBrowserState*)browserState |
29 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate; | 29 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate; |
30 | 30 |
31 @end | 31 @end |
32 | 32 |
33 #endif // IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ | 33 #endif // IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
OLD | NEW |