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