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_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ | |
7 | |
8 #include "components/bubble/bubble_delegate.h" | |
9 | |
10 class Browser; | |
11 class WebUsbPermissionBubbleRequest; | |
12 | |
13 // ChooserBubbleDelegate creates a bubble ui for chooser permission | |
14 class ChooserBubbleDelegate : public BubbleDelegate { | |
15 public: | |
16 ChooserBubbleDelegate(Browser* browser, | |
17 scoped_ptr<WebUsbPermissionBubbleRequest> request); | |
18 ~ChooserBubbleDelegate() override; | |
19 | |
20 // BubbleDelegate: | |
21 scoped_ptr<BubbleUi> BuildBubbleUi() override; | |
22 std::string GetName() const override; | |
23 | |
24 private: | |
25 Browser* browser_; | |
26 scoped_ptr<WebUsbPermissionBubbleRequest> request_; | |
Reilly Grant (use Gerrit)
2015/10/20 22:17:07
Instead of holding the request the delegate should
juncai
2015/10/23 03:36:42
Done.
| |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate); | |
29 }; | |
30 | |
31 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ | |
OLD | NEW |