OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h" | 5 #import "ios/chrome/browser/ui/popup_menu/popup_menu_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
9 #import "ios/chrome/browser/ui/animation_util.h" | 9 #import "ios/chrome/browser/ui/animation_util.h" |
10 #import "ios/chrome/browser/ui/popup_menu/popup_menu_view.h" | 10 #import "ios/chrome/browser/ui/popup_menu/popup_menu_view.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 CGPoint sourceAnimationPoint_; | 60 CGPoint sourceAnimationPoint_; |
61 } | 61 } |
62 @end | 62 @end |
63 | 63 |
64 @implementation PopupMenuController | 64 @implementation PopupMenuController |
65 | 65 |
66 @synthesize containerView = containerView_; | 66 @synthesize containerView = containerView_; |
67 @synthesize backgroundButton = backgroundButton_; | 67 @synthesize backgroundButton = backgroundButton_; |
68 @synthesize popupContainer = popupContainer_; | 68 @synthesize popupContainer = popupContainer_; |
69 @synthesize delegate = delegate_; | 69 @synthesize delegate = delegate_; |
| 70 @synthesize dispatcher = dispatcher_; |
70 | 71 |
71 - (id)initWithParentView:(UIView*)parent { | 72 - (id)initWithParentView:(UIView*)parent { |
72 return [self initWithParentView:parent | 73 return [self initWithParentView:parent |
73 backgroundButtonParent:nil | 74 backgroundButtonParent:nil |
74 backgroundButtonColor:nil | 75 backgroundButtonColor:nil |
75 backgroundButtonAlpha:1.0 | 76 backgroundButtonAlpha:1.0 |
76 backgroundButtonTag:kBackgroundButtonNoTag | 77 backgroundButtonTag:kBackgroundButtonNoTag |
77 backgroundButtonSelector:nil]; | 78 backgroundButtonSelector:nil]; |
78 } | 79 } |
79 | 80 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 } | 274 } |
274 | 275 |
275 #pragma mark - | 276 #pragma mark - |
276 #pragma mark PopupMenuViewDelegate | 277 #pragma mark PopupMenuViewDelegate |
277 | 278 |
278 - (void)dismissPopupMenu { | 279 - (void)dismissPopupMenu { |
279 [delegate_ dismissPopupMenu:self]; | 280 [delegate_ dismissPopupMenu:self]; |
280 } | 281 } |
281 | 282 |
282 @end | 283 @end |
OLD | NEW |