| 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/omnibox_decoration_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/permission_bubble/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 : OmniboxDecorationBubbleController<NSTextViewDelegate> { | 18 : OmniboxDecorationBubbleController<NSTextViewDelegate> { |
| 19 @private | 19 @private |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |