Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/browser/cocoa/content_blocked_bubble_controller.h

Issue 2822026: Mac: First run bubble. (Closed)
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #import "chrome/browser/cocoa/base_bubble_controller.h"
13 14
14 class ContentSettingBubbleModel; 15 class ContentSettingBubbleModel;
15 @class InfoBubbleView; 16 @class InfoBubbleView;
16 17
17 namespace content_blocked_bubble { 18 namespace content_blocked_bubble {
18 // For every "show popup" button, remember the index of the popup tab contents 19 // For every "show popup" button, remember the index of the popup tab contents
19 // it should open when clicked. 20 // it should open when clicked.
20 typedef std::map<NSButton*, int> PopupLinks; 21 typedef std::map<NSButton*, int> PopupLinks;
21 } 22 }
22 23
23 // Manages a "content blocked" bubble. 24 // Manages a "content blocked" bubble.
24 @interface ContentBlockedBubbleController 25 @interface ContentBlockedBubbleController : BaseBubbleController {
25 : NSWindowController<NSWindowDelegate> {
26 @private 26 @private
27 NSWindow* parentWindow_; // weak
28 NSPoint anchor_;
29 IBOutlet InfoBubbleView* bubble_; // to set arrow position
30
31 IBOutlet NSTextField* titleLabel_; 27 IBOutlet NSTextField* titleLabel_;
32 IBOutlet NSMatrix* allowBlockRadioGroup_; 28 IBOutlet NSMatrix* allowBlockRadioGroup_;
33 29
34 IBOutlet NSButton* manageButton_; 30 IBOutlet NSButton* manageButton_;
35 IBOutlet NSButton* doneButton_; 31 IBOutlet NSButton* doneButton_;
36 32
37 // The container for the bubble contents of the geolocation bubble. 33 // The container for the bubble contents of the geolocation bubble.
38 IBOutlet NSView* contentsContainer_; 34 IBOutlet NSView* contentsContainer_;
39 35
40 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_; 36 scoped_ptr<ContentSettingBubbleModel> contentSettingBubbleModel_;
(...skipping 10 matching lines...) Expand all
51 // Callback for the "don't block / continue blocking" radio group. 47 // Callback for the "don't block / continue blocking" radio group.
52 - (IBAction)allowBlockToggled:(id)sender; 48 - (IBAction)allowBlockToggled:(id)sender;
53 49
54 // Callback for "close" button. 50 // Callback for "close" button.
55 - (IBAction)closeBubble:(id)sender; 51 - (IBAction)closeBubble:(id)sender;
56 52
57 // Callback for "manage" button. 53 // Callback for "manage" button.
58 - (IBAction)manageBlocking:(id)sender; 54 - (IBAction)manageBlocking:(id)sender;
59 55
60 @end 56 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698