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 #include "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h" |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 7 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
9 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 9 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
10 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h
" | 10 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h
" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 | 48 |
49 void PermissionBubbleCocoa::SetDelegate(Delegate* delegate) { | 49 void PermissionBubbleCocoa::SetDelegate(Delegate* delegate) { |
50 if (delegate_ == delegate) | 50 if (delegate_ == delegate) |
51 return; | 51 return; |
52 if (delegate_ && delegate) | 52 if (delegate_ && delegate) |
53 delegate_->SetView(NULL); | 53 delegate_->SetView(NULL); |
54 delegate_ = delegate; | 54 delegate_ = delegate; |
55 } | 55 } |
56 | 56 |
| 57 bool PermissionBubbleCocoa::CanAcceptRequestUpdate() { |
| 58 // TODO(gbillock): implement. Should return true if the mouse is not over the |
| 59 // dialog. |
| 60 return false; |
| 61 } |
| 62 |
57 void PermissionBubbleCocoa::OnBubbleClosing() { | 63 void PermissionBubbleCocoa::OnBubbleClosing() { |
58 bubbleController_ = nil; | 64 bubbleController_ = nil; |
59 } | 65 } |
OLD | NEW |