| 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 IBOutlet NSButton* manageButton_; |
| 35 IBOutlet NSButton* doneButton_; |
| 36 |
| 34 // The container for the bubble contents of the geolocation bubble. | 37 // The container for the bubble contents of the geolocation bubble. |
| 35 IBOutlet NSView* contentsContainer_; | 38 IBOutlet NSView* contentsContainer_; |
| 36 | 39 |
| 37 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_; | 40 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_; |
| 38 content_blocked_bubble::PopupLinks popupLinks_; | 41 content_blocked_bubble::PopupLinks popupLinks_; |
| 39 } | 42 } |
| 40 | 43 |
| 41 // Creates and shows a content blocked bubble. Takes ownership of | 44 // Creates and shows a content blocked bubble. Takes ownership of |
| 42 // |contentSettingBubbleModel| but not of the other objects. | 45 // |contentSettingBubbleModel| but not of the other objects. |
| 43 + (ContentBlockedBubbleController*) | 46 + (ContentBlockedBubbleController*) |
| 44 showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel | 47 showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel |
| 45 parentWindow:(NSWindow*)parentWindow | 48 parentWindow:(NSWindow*)parentWindow |
| 46 anchoredAt:(NSPoint)anchoredAt; | 49 anchoredAt:(NSPoint)anchoredAt; |
| 47 | 50 |
| 48 // Callback for the "don't block / continue blocking" radio group. | 51 // Callback for the "don't block / continue blocking" radio group. |
| 49 - (IBAction)allowBlockToggled:(id)sender; | 52 - (IBAction)allowBlockToggled:(id)sender; |
| 50 | 53 |
| 51 // Callback for "close" button. | 54 // Callback for "close" button. |
| 52 - (IBAction)closeBubble:(id)sender; | 55 - (IBAction)closeBubble:(id)sender; |
| 53 | 56 |
| 54 // Callback for "manage" button. | 57 // Callback for "manage" button. |
| 55 - (IBAction)manageBlocking:(id)sender; | 58 - (IBAction)manageBlocking:(id)sender; |
| 56 | 59 |
| 57 @end | 60 @end |
| OLD | NEW |