OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_HOME_WAITING_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_HOME_WAITING_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "base/ios/block_types.h" |
| 11 |
| 12 // Displays a waiting UI for BookmarkHomeTabletNTPController and |
| 13 // BookmarkHomeHandsetController. |
| 14 // It displays a gray background and an activity indicator. |
| 15 // The activity indicator appears after a delay, starting from the moment |
| 16 // |startWaiting| is called. |
| 17 @interface BookmarkHomeWaitingView : UIView |
| 18 |
| 19 // Call this method when this view is added to the visible view hierarchy. |
| 20 // After a delay, an activity indicator will be presented if this view is still |
| 21 // in the view hierarchy at that time. |
| 22 - (void)startWaiting; |
| 23 |
| 24 // Call this method when this view is removed from the visible view hierarchy. |
| 25 // |completion| will be called when this view is done animating out. |
| 26 - (void)stopWaitingWithCompletion:(ProceduralBlock)completion; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_HOME_WAITING_VIEW_H_ |
OLD | NEW |