NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / views / website_settings / permissions_bubble_view.h
blob991e70ea8b6ed3f9f4c0ef4a9aedb57a177b73ec
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_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
12 namespace views {
13 class View;
16 class PermissionsBubbleDelegateView;
18 class PermissionBubbleViewViews : public PermissionBubbleView {
19 public:
20 explicit PermissionBubbleViewViews(views::View* anchor_view);
21 virtual ~PermissionBubbleViewViews();
23 // PermissionBubbleView:
24 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
25 virtual void Show(const std::vector<PermissionBubbleRequest*>& requests,
26 const std::vector<bool>& accept_state,
27 bool customization_mode) OVERRIDE;
28 virtual void Hide() OVERRIDE;
30 void Closing();
31 void Toggle(int index, bool value);
32 void Accept();
33 void Deny();
34 void SetCustomizationMode();
36 private:
37 views::View* anchor_view_;
38 Delegate* delegate_;
39 PermissionsBubbleDelegateView* bubble_delegate_;
41 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
44 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_