| 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_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @protocol NewTabPagePanelProtocol; | 10 @protocol NewTabPagePanelProtocol; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Called when a snapshot of the content will be taken. | 28 // Called when a snapshot of the content will be taken. |
| 29 - (void)willUpdateSnapshot; | 29 - (void)willUpdateSnapshot; |
| 30 | 30 |
| 31 @end | 31 @end |
| 32 | 32 |
| 33 // Base class of a controller for the panels in the New Tab Page. This should | 33 // Base class of a controller for the panels in the New Tab Page. This should |
| 34 // not be instantiated, but instead one of its sub-classes. | 34 // not be instantiated, but instead one of its sub-classes. |
| 35 @protocol NewTabPagePanelProtocol<NewTabPagePanelControllerSnapshotting> | 35 @protocol NewTabPagePanelProtocol<NewTabPagePanelControllerSnapshotting> |
| 36 | 36 |
| 37 // NewTabPagePanelController delegate, may be nil. | 37 // NewTabPagePanelController delegate, may be nil. |
| 38 @property(nonatomic, assign) id<NewTabPagePanelControllerDelegate> delegate; | 38 @property(nonatomic, weak) id<NewTabPagePanelControllerDelegate> delegate; |
| 39 | 39 |
| 40 // Alpha value to use for the NewTabPageBar shadow. | 40 // Alpha value to use for the NewTabPageBar shadow. |
| 41 @property(nonatomic, readonly) CGFloat alphaForBottomShadow; | 41 @property(nonatomic, readonly) CGFloat alphaForBottomShadow; |
| 42 | 42 |
| 43 // Main view. | 43 // Main view. |
| 44 @property(nonatomic, readonly) UIView* view; | 44 @property(nonatomic, readonly, strong) UIView* view; |
| 45 | 45 |
| 46 // Reload any displayed data to ensure the view is up to date. | 46 // Reload any displayed data to ensure the view is up to date. |
| 47 - (void)reload; | 47 - (void)reload; |
| 48 | 48 |
| 49 // Notifies the NewTabPagePanelProtocol that it has been shown. | 49 // Notifies the NewTabPagePanelProtocol that it has been shown. |
| 50 - (void)wasShown; | 50 - (void)wasShown; |
| 51 | 51 |
| 52 // Notifies the NewTabPagePanelProtocol that it has been hidden. | 52 // Notifies the NewTabPagePanelProtocol that it has been hidden. |
| 53 - (void)wasHidden; | 53 - (void)wasHidden; |
| 54 | 54 |
| 55 // Dismisses any modal interaction elements. | 55 // Dismisses any modal interaction elements. |
| 56 - (void)dismissModals; | 56 - (void)dismissModals; |
| 57 | 57 |
| 58 // Dismisses on-screen keyboard if necessary. | 58 // Dismisses on-screen keyboard if necessary. |
| 59 - (void)dismissKeyboard; | 59 - (void)dismissKeyboard; |
| 60 | 60 |
| 61 // Disable and enable scrollToTop | 61 // Disable and enable scrollToTop |
| 62 - (void)setScrollsToTop:(BOOL)enable; | 62 - (void)setScrollsToTop:(BOOL)enable; |
| 63 | 63 |
| 64 @end | 64 @end |
| 65 | 65 |
| 66 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ | 66 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_PANEL_PROTOCOL_H_ |
| OLD | NEW |