Chromium Code Reviews| Index: ios/chrome/browser/ui/bubble/bubble_view_controller.h |
| diff --git a/ios/chrome/browser/ui/bubble/bubble_view_controller.h b/ios/chrome/browser/ui/bubble/bubble_view_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fa4b0c41d0a3cd3a6363e4575afb40706d94b3dd |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/bubble/bubble_view_controller.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |
| +#define IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |
| + |
| +#import "ios/chrome/browser/ui/bubble/bubble_view.h" |
| + |
| +#import <UIKit/UIKit.h> |
| + |
| +// 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.
|
| +// enum class BubbleAlignment; |
| + |
| +// View controller that manages a BubbleView, which points to a UI element of |
| +// interest. |
| +@interface BubbleViewController : UIViewController |
| + |
| +// Initializes the bubble with the given text, arrow direction, and alignment. |
| +- (instancetype)initWithText:(NSString*)text |
| + direction:(BubbleArrowDirection)arrowDirection |
| + alignment:(BubbleAlignment)alignment |
| + NS_DESIGNATED_INITIALIZER; |
| + |
| +- (instancetype)init NS_UNAVAILABLE; |
| + |
| +- (instancetype)initWithNibName:(NSString*)nibNameOrNil |
| + bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
| + |
| +- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| + |
| +// Animates the bubble in with a fade-in. |
| +- (void)animateContentIn; |
| + |
| +// Dismisses the bubble. If |animated| is true, the bubble fades out. |
| +- (void)dismissAnimated:(BOOL)animated; |
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_UI_BUBBLE_BUBBLE_VIEW_CONTROLLER_H_ |