Chromium Code Reviews| 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/views/permission_bubble/permission_prompt_impl.h" | 5 #include "chrome/browser/ui/views/permission_bubble/permission_prompt_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 // View implementation for the permissions bubble. | 48 // View implementation for the permissions bubble. |
| 49 class PermissionsBubbleDialogDelegateView | 49 class PermissionsBubbleDialogDelegateView |
| 50 : public views::BubbleDialogDelegateView { | 50 : public views::BubbleDialogDelegateView { |
| 51 public: | 51 public: |
| 52 PermissionsBubbleDialogDelegateView( | 52 PermissionsBubbleDialogDelegateView( |
| 53 PermissionPromptImpl* owner, | 53 PermissionPromptImpl* owner, |
| 54 const std::vector<PermissionRequest*>& requests); | 54 const std::vector<PermissionRequest*>& requests); |
| 55 ~PermissionsBubbleDialogDelegateView() override; | 55 ~PermissionsBubbleDialogDelegateView() override; |
| 56 | 56 |
| 57 void CloseBubble(); | 57 void CloseBubble(); |
| 58 void SizeToContents(); | 58 void SizeToContents() override; |
|
stevenjb
2017/06/14 17:58:58
Assuming this overrides a BubbleDialogDelegateView
sunxd
2017/06/14 18:19:56
Done.
| |
| 59 | 59 |
| 60 // BubbleDialogDelegateView: | 60 // BubbleDialogDelegateView: |
| 61 bool ShouldShowCloseButton() const override; | 61 bool ShouldShowCloseButton() const override; |
| 62 const gfx::FontList& GetTitleFontList() const override; | 62 const gfx::FontList& GetTitleFontList() const override; |
| 63 base::string16 GetWindowTitle() const override; | 63 base::string16 GetWindowTitle() const override; |
| 64 void OnWidgetDestroying(views::Widget* widget) override; | 64 void OnWidgetDestroying(views::Widget* widget) override; |
| 65 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 65 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 66 bool Cancel() override; | 66 bool Cancel() override; |
| 67 bool Accept() override; | 67 bool Accept() override; |
| 68 bool Close() override; | 68 bool Close() override; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 | 334 |
| 335 void PermissionPromptImpl::Accept() { | 335 void PermissionPromptImpl::Accept() { |
| 336 if (delegate_) | 336 if (delegate_) |
| 337 delegate_->Accept(); | 337 delegate_->Accept(); |
| 338 } | 338 } |
| 339 | 339 |
| 340 void PermissionPromptImpl::Deny() { | 340 void PermissionPromptImpl::Deny() { |
| 341 if (delegate_) | 341 if (delegate_) |
| 342 delegate_->Deny(); | 342 delegate_->Deny(); |
| 343 } | 343 } |
| OLD | NEW |