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

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: Apply 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 "base/callback.h"
9 #include "components/bubble/bubble_delegate.h"
10
11 class PermissionBubbleManager;
12 class PermissionBubbleRequest;
13
14 class PermissionBubbleDelegate : public BubbleDelegate {
15 public:
16 PermissionBubbleDelegate(
17 base::Callback<scoped_ptr<BubbleUI>(PermissionBubbleManager*)> ui_factory,
18 PermissionBubbleManager* manager);
19 ~PermissionBubbleDelegate() override;
20
21 // BubbleDelegate:
22 void DidClose() override;
23 bool ShouldCloseOnHide() const override;
24 scoped_ptr<BubbleUI> BuildBubbleUI() override;
25 void* GetContext() const override;
26
27 // Define this function in the platform specific bubble UI implementation.
msw 2015/08/13 03:37:21 Is this a TODO? Otherwise reword this comment to s
28 static scoped_ptr<BubbleUI> CreateBubble(PermissionBubbleManager* manager);
29
30 private:
31 base::Callback<scoped_ptr<BubbleUI>(PermissionBubbleManager*)> ui_factory_;
32 PermissionBubbleManager* manager_; // Weak.
33
34 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleDelegate);
35 };
36
37 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698