Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / website_settings / permissions_bubble_view.h
blob011df3d98bd9c578d3dca6882170b23ce57d0e93
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 <string>
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
13 #include "ui/views/bubble/bubble_border.h"
15 namespace views {
16 class View;
19 class Browser;
20 class PermissionsBubbleDelegateView;
22 class PermissionBubbleViewViews : public PermissionBubbleView {
23 public:
24 explicit PermissionBubbleViewViews(Browser* browser);
25 ~PermissionBubbleViewViews() override;
27 // Updates anchor on fullscreen changes, etc.
28 void UpdateAnchorPosition();
30 // PermissionBubbleView:
31 void SetDelegate(Delegate* delegate) override;
32 void Show(const std::vector<PermissionBubbleRequest*>& requests,
33 const std::vector<bool>& accept_state) override;
34 bool CanAcceptRequestUpdate() override;
35 void Hide() override;
36 bool IsVisible() override;
38 void Closing();
39 void Toggle(int index, bool value);
40 void Accept();
41 void Deny();
43 private:
44 views::View* GetAnchorView();
45 views::BubbleBorder::Arrow GetAnchorArrow();
47 Browser* browser_;
48 Delegate* delegate_;
49 PermissionsBubbleDelegateView* bubble_delegate_;
51 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
54 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_