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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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