| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/bubble/bubble_view.h" |
| 9 |
| 10 #import <UIKit/UIKit.h> |
| 11 |
| 12 // View controller that manages a BubbleView, which points to a UI element of |
| 13 // interest. |
| 14 @interface BubbleViewController : UIViewController |
| 15 |
| 16 // Initializes the bubble with the given text, arrow direction, and alignment. |
| 17 - (instancetype)initWithText:(NSString*)text |
| 18 direction:(BubbleArrowDirection)arrowDirection |
| 19 alignment:(BubbleAlignment)alignment |
| 20 NS_DESIGNATED_INITIALIZER; |
| 21 |
| 22 - (instancetype)init NS_UNAVAILABLE; |
| 23 |
| 24 - (instancetype)initWithNibName:(NSString*)nibNameOrNil |
| 25 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
| 26 |
| 27 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 28 |
| 29 // Animates the bubble in with a fade-in. |
| 30 - (void)animateContentIn; |
| 31 |
| 32 // Dismisses the bubble. If |animated| is true, the bubble fades out. |
| 33 - (void)dismissAnimated:(BOOL)animated; |
| 34 |
| 35 @end |
| 36 |
| 37 #endif // IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |
| OLD | NEW |