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

Side by Side Diff: chrome/browser/ui/views/website_settings/chooser_bubble_delegate.h

Issue 1408193003: Add chrome side webusb permission UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed mac sources from chrome_browser_ui.gypi Created 5 years, 2 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698