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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_delegate.h

Issue 1251633002: Add BubbleManager to manage bubbles and ChromeBubbleManager for events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Partial Feedback Created 5 years, 4 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
(Empty)
1 // Copyright 2015 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.
4
5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_
7
8 #include "components/bubble/bubble_delegate.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
10
11 class PermissionBubbleManager;
12 class PermissionBubbleRequest;
13
14 class PermissionBubbleDelegate : public BubbleDelegate {
15 public:
16 PermissionBubbleDelegate(PermissionBubbleManager* manager,
17 PermissionBubbleView::Factory view_factory);
18 ~PermissionBubbleDelegate() override;
19
20 // BubbleDelegate:
21 void Finalize() override;
please use gerrit instead 2015/08/07 23:02:27 DidClose().
hcarmona 2015/08/11 02:35:45 Done.
22 bool CloseOnHide() override;
please use gerrit instead 2015/08/07 23:02:27 ShouldCloseOnHide().
hcarmona 2015/08/11 02:35:45 Done.
23 scoped_ptr<BubbleUI> BuildBubbleUI() override;
24 void* GetContext() override;
25
26 // Callbacks to the PermissionBubbleManager.
27 void ToggleAccept(int index, bool new_value);
28 void Accept();
29 void Deny();
30 void Closing();
31
32 // Bubbles should not hold a reference to these values.
33 const std::vector<PermissionBubbleRequest*>& GetRequests();
34 const std::vector<bool>& GetAcceptStates();
35
36 private:
37 PermissionBubbleManager* manager_;
please use gerrit instead 2015/08/07 23:02:27 be wevy wevy careful
hcarmona 2015/08/11 02:35:46 Acknowledged.
38 PermissionBubbleView::Factory view_factory_;
39
40 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleDelegate);
41 };
42
43 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698