Chromium Code Reviews| 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 // enum class BubbleArrowDirection; | |
|
gchatz
2017/07/08 00:46:22
These probably should be gone. They are commented
helenlyang
2017/07/10 17:15:23
Ack sorry! Removed.
| |
| 13 // enum class BubbleAlignment; | |
| 14 | |
| 15 // View controller that manages a BubbleView, which points to a UI element of | |
| 16 // interest. | |
| 17 @interface BubbleViewController : UIViewController | |
| 18 | |
| 19 // Initializes the bubble with the given text, arrow direction, and alignment. | |
| 20 - (instancetype)initWithText:(NSString*)text | |
| 21 direction:(BubbleArrowDirection)arrowDirection | |
| 22 alignment:(BubbleAlignment)alignment | |
| 23 NS_DESIGNATED_INITIALIZER; | |
| 24 | |
| 25 - (instancetype)init NS_UNAVAILABLE; | |
| 26 | |
| 27 - (instancetype)initWithNibName:(NSString*)nibNameOrNil | |
| 28 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; | |
| 29 | |
| 30 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | |
| 31 | |
| 32 // Animates the bubble in with a fade-in. | |
| 33 - (void)animateContentIn; | |
| 34 | |
| 35 // Dismisses the bubble. If |animated| is true, the bubble fades out. | |
| 36 - (void)dismissAnimated:(BOOL)animated; | |
| 37 | |
| 38 @end | |
| 39 | |
| 40 #endif // IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ | |
| OLD | NEW |