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

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: Kill views_bubble_controller Created 5 years, 5 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.
please use gerrit instead 2015/07/22 23:56:09 Put this in anon namespace inside of the .cc file
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 "chrome/browser/ui/website_settings/permission_bubble_view.h"
9 #include "components/bubble/bubble_delegate.h"
10
11 class Browser;
12 class PermissionBubbleManager;
13
14 class PermissionBubbleDelegate : public BubbleDelegate {
15 public:
16 PermissionBubbleDelegate(Browser* browser,
17 PermissionBubbleManager* permission_bubble_manager);
18 ~PermissionBubbleDelegate() override;
19
20 void OnShow() override;
please use gerrit instead 2015/07/22 23:56:09 // BubbleDelegate implementation.
21 void OnHide() override;
22
23 void OnUpdatePosition() override;
24
25 void BuildBubble(BubbleBuilder* builder) override;
26
27 private:
28 Browser* browser_;
29 PermissionBubbleManager* permission_bubble_manager_;
30
31 // TODO(hcarmona): Remove the view and factory after builder builds.
32 // Factory to be used to create views when needed.
33 PermissionBubbleView::Factory view_factory_;
34 // The UI surface to be used to display the permissions requests.
35 scoped_ptr<PermissionBubbleView> view_;
36 };
37
38 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698