| 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 #ifndef CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class PermissionsBubbleDialogDelegateView; | 22 class PermissionsBubbleDialogDelegateView; |
| 23 class Profile; | 23 class Profile; |
| 24 | 24 |
| 25 class PermissionPromptImpl : public PermissionPrompt { | 25 class PermissionPromptImpl : public PermissionPrompt { |
| 26 public: | 26 public: |
| 27 explicit PermissionPromptImpl(Browser* browser); | 27 explicit PermissionPromptImpl(Browser* browser); |
| 28 ~PermissionPromptImpl() override; | 28 ~PermissionPromptImpl() override; |
| 29 | 29 |
| 30 // PermissionPrompt: | 30 // PermissionPrompt: |
| 31 void SetDelegate(Delegate* delegate) override; | 31 void SetDelegate(Delegate* delegate) override; |
| 32 void Show(const std::vector<PermissionRequest*>& requests, | 32 void Show() override; |
| 33 const std::vector<bool>& accept_state) override; | |
| 34 bool CanAcceptRequestUpdate() override; | 33 bool CanAcceptRequestUpdate() override; |
| 35 bool HidesAutomatically() override; | 34 bool HidesAutomatically() override; |
| 36 void Hide() override; | 35 void Hide() override; |
| 37 void UpdateAnchorPosition() override; | 36 void UpdateAnchorPosition() override; |
| 38 gfx::NativeWindow GetNativeWindow() override; | 37 gfx::NativeWindow GetNativeWindow() override; |
| 39 | 38 |
| 40 void Closing(); | 39 void Closing(); |
| 41 void ToggleAccept(int index, bool value); | 40 void ToggleAccept(int index, bool value); |
| 42 void TogglePersist(bool value); | 41 void TogglePersist(bool value); |
| 43 void Accept(); | 42 void Accept(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 58 views::BubbleBorder::Arrow GetAnchorArrow(); | 57 views::BubbleBorder::Arrow GetAnchorArrow(); |
| 59 | 58 |
| 60 Browser* browser_; | 59 Browser* browser_; |
| 61 Delegate* delegate_; | 60 Delegate* delegate_; |
| 62 PermissionsBubbleDialogDelegateView* bubble_delegate_; | 61 PermissionsBubbleDialogDelegateView* bubble_delegate_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(PermissionPromptImpl); | 63 DISALLOW_COPY_AND_ASSIGN(PermissionPromptImpl); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 #endif // CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ | 66 #endif // CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ |
| OLD | NEW |