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

Unified Diff: ios/chrome/browser/ui/bubble_promo/bubble_view_controller.mm

Issue 2964233002: [ios] BubbleViewController and BubbleView stubs. (Closed)
Patch Set: Created 3 years, 6 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
Index: ios/chrome/browser/ui/bubble_promo/bubble_view_controller.mm
diff --git a/ios/chrome/browser/ui/bubble_promo/bubble_view_controller.mm b/ios/chrome/browser/ui/bubble_promo/bubble_view_controller.mm
new file mode 100644
index 0000000000000000000000000000000000000000..310295711873ddf5fdb5755f86e64d9472cce675
--- /dev/null
+++ b/ios/chrome/browser/ui/bubble_promo/bubble_view_controller.mm
@@ -0,0 +1,32 @@
+// 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.
+
+#import "ios/chrome/browser/ui/bubble_promo/bubble_view_controller.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation BubbleViewController
+
+@synthesize bubbleOrigin = _bubbleOrigin;
+
+- (instancetype)initWithConfiguration:(BubbleConfiguration*)configuration {
+ self = [super initWithNibName:nil bundle:nil];
+ return self;
+}
+
+- (void)animateContentIn {
+}
+
+- (void)dismissAnimated:(BOOL)animated {
+}
+
+// Calculate the bubble's desired origin based on label size, alignment, arrow
+// direction, and the frame of the target UI element.
+- (CGPoint)bubbleOrigin {
+ return _bubbleOrigin;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698