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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
18 class PermissionsBubbleDelegateView
;
20 class PermissionBubbleViewViews
: public PermissionBubbleView
{
22 PermissionBubbleViewViews(views::View
* anchor_view
,
23 const std::string
& languages
);
24 ~PermissionBubbleViewViews() override
;
26 // PermissionBubbleView:
27 void SetDelegate(Delegate
* delegate
) override
;
28 void Show(const std::vector
<PermissionBubbleRequest
*>& requests
,
29 const std::vector
<bool>& accept_state
,
30 bool customization_mode
) override
;
31 bool CanAcceptRequestUpdate() override
;
33 bool IsVisible() override
;
36 void Toggle(int index
, bool value
);
39 void SetCustomizationMode();
42 views::View
* anchor_view_
;
44 PermissionsBubbleDelegateView
* bubble_delegate_
;
45 const std::string languages_
;
47 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews
);
50 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_