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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" | 12 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 class View; | 15 class View; |
16 } | 16 } |
17 | 17 |
18 class PermissionsBubbleDelegateView; | 18 class PermissionsBubbleDelegateView; |
19 | 19 |
20 class PermissionBubbleViewViews : public PermissionBubbleView { | 20 class PermissionBubbleViewViews : public PermissionBubbleView { |
21 public: | 21 public: |
22 PermissionBubbleViewViews(views::View* anchor_view, | 22 PermissionBubbleViewViews(views::View* anchor_view, |
23 const std::string& languages); | 23 const std::string& languages); |
24 ~PermissionBubbleViewViews() override; | 24 ~PermissionBubbleViewViews() override; |
25 | 25 |
26 // PermissionBubbleView: | 26 // PermissionBubbleView: |
27 void SetDelegate(Delegate* delegate) override; | 27 void SetDelegate(Delegate* delegate) override; |
28 void Show(const std::vector<PermissionBubbleRequest*>& requests, | 28 void Show(const std::vector<PermissionBubbleRequest*>& requests, |
29 const std::vector<bool>& accept_state, | 29 const std::vector<bool>& accept_state) override; |
30 bool customization_mode) override; | |
31 bool CanAcceptRequestUpdate() override; | 30 bool CanAcceptRequestUpdate() override; |
32 void Hide() override; | 31 void Hide() override; |
33 bool IsVisible() override; | 32 bool IsVisible() override; |
34 | 33 |
35 void Closing(); | 34 void Closing(); |
36 void Toggle(int index, bool value); | 35 void Toggle(int index, bool value); |
37 void Accept(); | 36 void Accept(); |
38 void Deny(); | 37 void Deny(); |
39 void SetCustomizationMode(); | |
40 | 38 |
41 private: | 39 private: |
42 views::View* anchor_view_; | 40 views::View* anchor_view_; |
43 Delegate* delegate_; | 41 Delegate* delegate_; |
44 PermissionsBubbleDelegateView* bubble_delegate_; | 42 PermissionsBubbleDelegateView* bubble_delegate_; |
45 const std::string languages_; | 43 const std::string languages_; |
46 | 44 |
47 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); | 45 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); |
48 }; | 46 }; |
49 | 47 |
50 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ | 48 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ |
OLD | NEW |