| OLD | NEW |
| 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/omnibox_decoration_bubble_controller.h" |
| 9 #include "chrome/browser/ui/website_settings/permission_prompt.h" | 9 #include "chrome/browser/ui/website_settings/permission_prompt.h" |
| 10 #include "ui/base/models/simple_menu_model.h" | 10 #include "ui/base/models/simple_menu_model.h" |
| 11 | 11 |
| 12 class Browser; | 12 class Browser; |
| 13 @class MenuController; | 13 @class MenuController; |
| 14 class PermissionBubbleCocoa; | 14 class PermissionBubbleCocoa; |
| 15 class PermissionRequest; | 15 class PermissionRequest; |
| 16 | 16 |
| 17 @interface PermissionBubbleController : | 17 @interface PermissionBubbleController |
| 18 BaseBubbleController<NSTextViewDelegate> { | 18 : OmniboxDecorationBubbleController<NSTextViewDelegate> { |
| 19 @private | 19 @private |
| 20 // Array of views that are the checkboxes for every requested permission. | 20 // Array of views that are the checkboxes for every requested permission. |
| 21 // Only populated if multiple requests are shown at once. | 21 // Only populated if multiple requests are shown at once. |
| 22 base::scoped_nsobject<NSMutableArray> checkboxes_; | 22 base::scoped_nsobject<NSMutableArray> checkboxes_; |
| 23 | 23 |
| 24 // Delegate to be informed of user actions. | 24 // Delegate to be informed of user actions. |
| 25 PermissionPrompt::Delegate* delegate_; // Weak. | 25 PermissionPrompt::Delegate* delegate_; // Weak. |
| 26 | 26 |
| 27 // Used to determine the correct anchor location and parent window. | 27 // Used to determine the correct anchor location and parent window. |
| 28 Browser* browser_; // Weak. | 28 Browser* browser_; // Weak. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 // Will calculate the expected anchor point for this bubble. | 55 // Will calculate the expected anchor point for this bubble. |
| 56 // Should only be used outside this class for tests. | 56 // Should only be used outside this class for tests. |
| 57 - (NSPoint)getExpectedAnchorPoint; | 57 - (NSPoint)getExpectedAnchorPoint; |
| 58 | 58 |
| 59 // Returns true if the browser has a visible location bar. | 59 // Returns true if the browser has a visible location bar. |
| 60 // Should only be used outside this class for tests. | 60 // Should only be used outside this class for tests. |
| 61 - (bool)hasVisibleLocationBar; | 61 - (bool)hasVisibleLocationBar; |
| 62 | 62 |
| 63 @end | 63 @end |
| OLD | NEW |