OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" |
| 11 |
| 12 namespace ios { |
| 13 class ChromeBrowserState; |
| 14 } |
| 15 |
| 16 @protocol UrlLoader; |
| 17 @protocol WebToolbarDelegate; |
| 18 |
| 19 @interface IncognitoPanelController : NSObject<NewTabPagePanelProtocol> |
| 20 |
| 21 // The view that is displaying the incognito* panel. |
| 22 @property(nonatomic, readonly) UIView* view; |
| 23 |
| 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. |
| 26 // |webToolbarDelegate| is used to fade the toolbar views on page scroll. |
| 27 - (id)initWithLoader:(id<UrlLoader>)loader |
| 28 browserState:(ios::ChromeBrowserState*)browserState |
| 29 webToolbarDelegate:(id<WebToolbarDelegate>)webToolbarDelegate; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // IOS_CHROME_BROWSER_UI_NTP_INCOGNITO_PANEL_CONTROLLER_H_ |
OLD | NEW |