| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <map> | 5 #include <map> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/cocoa_protocols_mac.h" | 10 #import "base/cocoa_protocols_mac.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 @interface ContentBlockedBubbleController | 24 @interface ContentBlockedBubbleController |
| 25 : NSWindowController<NSWindowDelegate> { | 25 : NSWindowController<NSWindowDelegate> { |
| 26 @private | 26 @private |
| 27 NSWindow* parentWindow_; // weak | 27 NSWindow* parentWindow_; // weak |
| 28 NSPoint anchor_; | 28 NSPoint anchor_; |
| 29 IBOutlet InfoBubbleView* bubble_; // to set arrow position | 29 IBOutlet InfoBubbleView* bubble_; // to set arrow position |
| 30 | 30 |
| 31 IBOutlet NSTextField* titleLabel_; | 31 IBOutlet NSTextField* titleLabel_; |
| 32 IBOutlet NSMatrix* allowBlockRadioGroup_; | 32 IBOutlet NSMatrix* allowBlockRadioGroup_; |
| 33 | 33 |
| 34 // The container for the bubble contents of the geolocation bubble. |
| 35 IBOutlet NSView* contentsContainer_; |
| 36 |
| 34 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_; | 37 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_; |
| 35 content_blocked_bubble::PopupLinks popupLinks_; | 38 content_blocked_bubble::PopupLinks popupLinks_; |
| 36 } | 39 } |
| 37 | 40 |
| 38 // Creates and shows a content blocked bubble. Takes ownership of | 41 // Creates and shows a content blocked bubble. Takes ownership of |
| 39 // |contentSettingBubbleModel| but not of the other objects. | 42 // |contentSettingBubbleModel| but not of the other objects. |
| 40 + (ContentBlockedBubbleController*) | 43 + (ContentBlockedBubbleController*) |
| 41 showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel | 44 showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel |
| 42 parentWindow:(NSWindow*)parentWindow | 45 parentWindow:(NSWindow*)parentWindow |
| 43 anchoredAt:(NSPoint)anchoredAt; | 46 anchoredAt:(NSPoint)anchoredAt; |
| 44 | 47 |
| 45 // Callback for the "don't block / continue blocking" radio group. | 48 // Callback for the "don't block / continue blocking" radio group. |
| 46 - (IBAction)allowBlockToggled:(id)sender; | 49 - (IBAction)allowBlockToggled:(id)sender; |
| 47 | 50 |
| 48 // Callback for "close" button. | 51 // Callback for "close" button. |
| 49 - (IBAction)closeBubble:(id)sender; | 52 - (IBAction)closeBubble:(id)sender; |
| 50 | 53 |
| 51 // Callback for "manage" button. | 54 // Callback for "manage" button. |
| 52 - (IBAction)manageBlocking:(id)sender; | 55 - (IBAction)manageBlocking:(id)sender; |
| 53 | 56 |
| 54 @end | 57 @end |
| OLD | NEW |