| 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 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 9 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h
" | 9 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h
" |
| 10 #import "chrome/browser/ui/website_settings/permission_bubble_view.h" | 10 #import "chrome/browser/ui/website_settings/permission_prompt.h" |
| 11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 12 #import "ui/base/cocoa/nsview_additions.h" | 12 #import "ui/base/cocoa/nsview_additions.h" |
| 13 | 13 |
| 14 PermissionBubbleCocoa::PermissionBubbleCocoa(Browser* browser) | 14 PermissionBubbleCocoa::PermissionBubbleCocoa(Browser* browser) |
| 15 : browser_(browser), delegate_(nullptr), bubbleController_(nil) { | 15 : browser_(browser), delegate_(nullptr), bubbleController_(nil) { |
| 16 DCHECK(browser); | 16 DCHECK(browser); |
| 17 } | 17 } |
| 18 | 18 |
| 19 PermissionBubbleCocoa::~PermissionBubbleCocoa() { | 19 PermissionBubbleCocoa::~PermissionBubbleCocoa() { |
| 20 } | 20 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 [bubbleController_ updateAnchorPosition]; | 55 [bubbleController_ updateAnchorPosition]; |
| 56 } | 56 } |
| 57 | 57 |
| 58 gfx::NativeWindow PermissionBubbleCocoa::GetNativeWindow() { | 58 gfx::NativeWindow PermissionBubbleCocoa::GetNativeWindow() { |
| 59 return [bubbleController_ window]; | 59 return [bubbleController_ window]; |
| 60 } | 60 } |
| 61 | 61 |
| 62 void PermissionBubbleCocoa::OnBubbleClosing() { | 62 void PermissionBubbleCocoa::OnBubbleClosing() { |
| 63 bubbleController_ = nil; | 63 bubbleController_ = nil; |
| 64 } | 64 } |
| OLD | NEW |