OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_SAD_TAB_SAD_TAB_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SAD_TAB_SAD_TAB_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "base/ios/block_types.h" |
| 11 |
| 12 // The view used to show "sad tab" content to the user when WKWebView's renderer |
| 13 // process crashes. |
| 14 @interface SadTabView : UIView |
| 15 |
| 16 // Designated initializer. |reloadHandler| will be called when the reload |
| 17 // button is tapped and must not be nil. |
| 18 - (instancetype)initWithReloadHandler:(ProceduralBlock)reloadHandler |
| 19 NS_DESIGNATED_INITIALIZER; |
| 20 |
| 21 - (instancetype)init NS_UNAVAILABLE; |
| 22 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
| 23 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 24 |
| 25 @end |
| 26 |
| 27 #endif // IOS_CHROME_BROWSER_UI_SAD_TAB_SAD_TAB_VIEW_H_ |
OLD | NEW |