| 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
|
|
|