Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: chrome/browser/ui/views/website_settings/permissions_bubble_view.h

Issue 176053002: [WebsiteSettings] Change permission bubble API to adapt to new mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 10 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
11 11
12 namespace views { 12 namespace views {
13 class View; 13 class View;
14 } 14 }
15 15
16 class PermissionsBubbleDelegateView; 16 class PermissionsBubbleDelegateView;
17 17
18 class PermissionBubbleViewViews : public PermissionBubbleView { 18 class PermissionBubbleViewViews : public PermissionBubbleView {
19 public: 19 public:
20 explicit PermissionBubbleViewViews(views::View* anchor_view); 20 explicit PermissionBubbleViewViews(views::View* anchor_view);
21 virtual ~PermissionBubbleViewViews(); 21 virtual ~PermissionBubbleViewViews();
22 22
23 // PermissionBubbleView: 23 // PermissionBubbleView:
24 virtual void SetDelegate(Delegate* delegate) OVERRIDE; 24 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
25 virtual void Show(const std::vector<PermissionBubbleRequest*>& requests, 25 virtual void Show(const std::vector<PermissionBubbleRequest*>& requests,
26 const std::vector<bool>& accept_state, 26 const std::vector<bool>& accept_state,
27 bool customization_mode) OVERRIDE; 27 bool customization_mode) OVERRIDE;
28 virtual bool CanAcceptRequestUpdate() OVERRIDE;
28 virtual void Hide() OVERRIDE; 29 virtual void Hide() OVERRIDE;
29 30
30 void Closing(); 31 void Closing();
31 void Toggle(int index, bool value); 32 void Toggle(int index, bool value);
32 void Accept(); 33 void Accept();
33 void Deny(); 34 void Deny();
34 void SetCustomizationMode(); 35 void SetCustomizationMode();
35 36
36 private: 37 private:
37 views::View* anchor_view_; 38 views::View* anchor_view_;
38 Delegate* delegate_; 39 Delegate* delegate_;
39 PermissionsBubbleDelegateView* bubble_delegate_; 40 PermissionsBubbleDelegateView* bubble_delegate_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); 42 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
42 }; 43 };
43 44
44 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ 45 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698