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

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

Issue 882113004: Permission bubble should display URL with appropriate language pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 class Profile;
17 18
18 class PermissionBubbleViewViews : public PermissionBubbleView { 19 class PermissionBubbleViewViews : public PermissionBubbleView {
19 public: 20 public:
20 explicit PermissionBubbleViewViews(views::View* anchor_view); 21 explicit PermissionBubbleViewViews(views::View* anchor_view,
sky 2015/01/28 21:28:47 remove explicit.
felt 2015/01/28 22:31:02 Done.
22 Profile* profile);
21 ~PermissionBubbleViewViews() override; 23 ~PermissionBubbleViewViews() override;
22 24
23 // PermissionBubbleView: 25 // PermissionBubbleView:
24 void SetDelegate(Delegate* delegate) override; 26 void SetDelegate(Delegate* delegate) override;
25 void Show(const std::vector<PermissionBubbleRequest*>& requests, 27 void Show(const std::vector<PermissionBubbleRequest*>& requests,
26 const std::vector<bool>& accept_state, 28 const std::vector<bool>& accept_state,
27 bool customization_mode) override; 29 bool customization_mode) override;
28 bool CanAcceptRequestUpdate() override; 30 bool CanAcceptRequestUpdate() override;
29 void Hide() override; 31 void Hide() override;
30 bool IsVisible() override; 32 bool IsVisible() override;
31 33
32 void Closing(); 34 void Closing();
33 void Toggle(int index, bool value); 35 void Toggle(int index, bool value);
34 void Accept(); 36 void Accept();
35 void Deny(); 37 void Deny();
36 void SetCustomizationMode(); 38 void SetCustomizationMode();
37 39
38 private: 40 private:
39 views::View* anchor_view_; 41 views::View* anchor_view_;
40 Delegate* delegate_; 42 Delegate* delegate_;
41 PermissionsBubbleDelegateView* bubble_delegate_; 43 PermissionsBubbleDelegateView* bubble_delegate_;
44 Profile* profile_;
42 45
43 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); 46 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
44 }; 47 };
45 48
46 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ 49 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698