| 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 16 matching lines...) Expand all Loading... |
| 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(const std::vector<PermissionRequest*>& requests, |
| 33 const std::vector<bool>& accept_state) override; | 33 const std::vector<bool>& accept_state) override; |
| 34 bool CanAcceptRequestUpdate() override; | 34 bool CanAcceptRequestUpdate() override; |
| 35 bool HidesAutomatically() override; | 35 bool HidesAutomatically() override; |
| 36 void Hide() override; | 36 void Hide() override; |
| 37 bool IsVisible() override; | |
| 38 void UpdateAnchorPosition() override; | 37 void UpdateAnchorPosition() override; |
| 39 gfx::NativeWindow GetNativeWindow() override; | 38 gfx::NativeWindow GetNativeWindow() override; |
| 40 | 39 |
| 41 void Closing(); | 40 void Closing(); |
| 42 void ToggleAccept(int index, bool value); | 41 void ToggleAccept(int index, bool value); |
| 43 void TogglePersist(bool value); | 42 void TogglePersist(bool value); |
| 44 void Accept(); | 43 void Accept(); |
| 45 void Deny(); | 44 void Deny(); |
| 46 | 45 |
| 47 Profile* GetProfile(); | 46 Profile* GetProfile(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 59 views::BubbleBorder::Arrow GetAnchorArrow(); | 58 views::BubbleBorder::Arrow GetAnchorArrow(); |
| 60 | 59 |
| 61 Browser* browser_; | 60 Browser* browser_; |
| 62 Delegate* delegate_; | 61 Delegate* delegate_; |
| 63 PermissionsBubbleDialogDelegateView* bubble_delegate_; | 62 PermissionsBubbleDialogDelegateView* bubble_delegate_; |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(PermissionPromptImpl); | 64 DISALLOW_COPY_AND_ASSIGN(PermissionPromptImpl); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 #endif // CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ |
| OLD | NEW |