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