| OLD | NEW |
| (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 #import "ios/chrome/browser/ui/bubble_promo/bubble_view_controller.h" |
| 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 11 @implementation BubbleViewController |
| 12 |
| 13 @synthesize bubbleOrigin = _bubbleOrigin; |
| 14 |
| 15 - (instancetype)initWithConfiguration:(BubbleConfiguration*)configuration { |
| 16 self = [super initWithNibName:nil bundle:nil]; |
| 17 return self; |
| 18 } |
| 19 |
| 20 - (void)animateContentIn { |
| 21 } |
| 22 |
| 23 - (void)dismissAnimated:(BOOL)animated { |
| 24 } |
| 25 |
| 26 // Calculate the bubble's desired origin based on label size, alignment, arrow |
| 27 // direction, and the frame of the target UI element. |
| 28 - (CGPoint)bubbleOrigin { |
| 29 return _bubbleOrigin; |
| 30 } |
| 31 |
| 32 @end |
| OLD | NEW |