Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: ios/chrome/browser/ui/bubble/bubble_view_controller.h

Issue 2964233002: [ios] BubbleViewController and BubbleView stubs. (Closed)
Patch Set: Add initial values for enums Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/bubble/bubble_view.mm ('k') | ios/chrome/browser/ui/bubble/bubble_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698