| 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_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Browser; | 21 class Browser; |
| 22 class PermissionsBubbleDialogDelegateView; | 22 class PermissionsBubbleDialogDelegateView; |
| 23 | 23 |
| 24 class PermissionBubbleViewViews : public PermissionBubbleView { | 24 class PermissionBubbleViewViews : public PermissionBubbleView { |
| 25 public: | 25 public: |
| 26 explicit PermissionBubbleViewViews(Browser* browser); | 26 explicit PermissionBubbleViewViews(Browser* browser); |
| 27 ~PermissionBubbleViewViews() override; | 27 ~PermissionBubbleViewViews() override; |
| 28 | 28 |
| 29 // PermissionBubbleView: | 29 // PermissionBubbleView: |
| 30 void SetDelegate(Delegate* delegate) override; | 30 void SetDelegate(Delegate* delegate) override; |
| 31 void Show(const std::vector<PermissionBubbleRequest*>& requests, | 31 void Show(const std::vector<PermissionRequest*>& requests, |
| 32 const std::vector<bool>& accept_state) override; | 32 const std::vector<bool>& accept_state) override; |
| 33 bool CanAcceptRequestUpdate() override; | 33 bool CanAcceptRequestUpdate() override; |
| 34 void Hide() override; | 34 void Hide() override; |
| 35 bool IsVisible() override; | 35 bool IsVisible() override; |
| 36 void UpdateAnchorPosition() override; | 36 void UpdateAnchorPosition() override; |
| 37 gfx::NativeWindow GetNativeWindow() override; | 37 gfx::NativeWindow GetNativeWindow() override; |
| 38 | 38 |
| 39 void Closing(); | 39 void Closing(); |
| 40 void Toggle(int index, bool value); | 40 void Toggle(int index, bool value); |
| 41 void Accept(); | 41 void Accept(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 views::BubbleBorder::Arrow GetAnchorArrow(); | 54 views::BubbleBorder::Arrow GetAnchorArrow(); |
| 55 | 55 |
| 56 Browser* browser_; | 56 Browser* browser_; |
| 57 Delegate* delegate_; | 57 Delegate* delegate_; |
| 58 PermissionsBubbleDialogDelegateView* bubble_delegate_; | 58 PermissionsBubbleDialogDelegateView* bubble_delegate_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); | 60 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ | 63 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ |
| OLD | NEW |