| 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..17e2495f6d158639a67fb3f5b784129ee1fcea5d
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/ui/bubble/bubble_view_controller.h
|
| @@ -0,0 +1,37 @@
|
| +// 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>
|
| +
|
| +// 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_
|
|
|