Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |