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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h

Issue 2123653006: Rename PermissionBubbleRequest to PermissionRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_manager_rename
Patch Set: Fix missed file Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 9 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
10 #include "ui/base/models/simple_menu_model.h" 10 #include "ui/base/models/simple_menu_model.h"
11 11
12 @class MenuController; 12 @class MenuController;
13 class PermissionBubbleCocoa; 13 class PermissionBubbleCocoa;
14 class PermissionBubbleRequest; 14 class PermissionRequest;
15 15
16 @interface PermissionBubbleController : 16 @interface PermissionBubbleController :
17 BaseBubbleController<NSTextViewDelegate> { 17 BaseBubbleController<NSTextViewDelegate> {
18 @private 18 @private
19 // Array of views that are the checkboxes for every requested permission. 19 // Array of views that are the checkboxes for every requested permission.
20 // Only populated if multiple requests are shown at once. 20 // Only populated if multiple requests are shown at once.
21 base::scoped_nsobject<NSMutableArray> checkboxes_; 21 base::scoped_nsobject<NSMutableArray> checkboxes_;
22 22
23 // Delegate to be informed of user actions. 23 // Delegate to be informed of user actions.
24 PermissionBubbleView::Delegate* delegate_; // Weak. 24 PermissionBubbleView::Delegate* delegate_; // Weak.
(...skipping 13 matching lines...) Expand all
38 38
39 // Returns the anchor point to use for the given Cocoa |browser|. 39 // Returns the anchor point to use for the given Cocoa |browser|.
40 + (NSPoint)getAnchorPointForBrowser:(Browser*)browser; 40 + (NSPoint)getAnchorPointForBrowser:(Browser*)browser;
41 41
42 // Returns true if |browser| has a visible location bar. 42 // Returns true if |browser| has a visible location bar.
43 + (bool)hasVisibleLocationBarForBrowser:(Browser*)browser; 43 + (bool)hasVisibleLocationBarForBrowser:(Browser*)browser;
44 44
45 // Makes the bubble visible. The bubble will be popuplated with text retrieved 45 // Makes the bubble visible. The bubble will be popuplated with text retrieved
46 // from |requests|. |delegate| will receive callbacks for user actions. 46 // from |requests|. |delegate| will receive callbacks for user actions.
47 - (void)showWithDelegate:(PermissionBubbleView::Delegate*)delegate 47 - (void)showWithDelegate:(PermissionBubbleView::Delegate*)delegate
48 forRequests:(const std::vector<PermissionBubbleRequest*>&)requests 48 forRequests:(const std::vector<PermissionRequest*>&)requests
49 acceptStates:(const std::vector<bool>&)acceptStates; 49 acceptStates:(const std::vector<bool>&)acceptStates;
50 50
51 // Will reposition the bubble based in case the anchor or parent should change. 51 // Will reposition the bubble based in case the anchor or parent should change.
52 - (void)updateAnchorPosition; 52 - (void)updateAnchorPosition;
53 53
54 // Will calculate the expected anchor point for this bubble. 54 // Will calculate the expected anchor point for this bubble.
55 // Should only be used outside this class for tests. 55 // Should only be used outside this class for tests.
56 - (NSPoint)getExpectedAnchorPoint; 56 - (NSPoint)getExpectedAnchorPoint;
57 57
58 // Returns true if the browser has a visible location bar. 58 // Returns true if the browser has a visible location bar.
59 // Should only be used outside this class for tests. 59 // Should only be used outside this class for tests.
60 - (bool)hasVisibleLocationBar; 60 - (bool)hasVisibleLocationBar;
61 61
62 @end 62 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698