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

Unified Diff: chrome/browser/ui/website_settings/chooser_bubble_delegate.cc

Issue 1408193003: Add chrome side webusb permission UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address sky@'s comments, added TODO to chrome_bubble_manager.cc Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/website_settings/chooser_bubble_delegate.h ('k') | chrome/browser/usb/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/chooser_bubble_delegate.cc
diff --git a/chrome/browser/ui/website_settings/chooser_bubble_delegate.cc b/chrome/browser/ui/website_settings/chooser_bubble_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b0c3ea5690cc7826cf699cb4d51e782417ea4e4d
--- /dev/null
+++ b/chrome/browser/ui/website_settings/chooser_bubble_delegate.cc
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h"
+
+#if defined(OS_MACOSX)
+#include "components/bubble/bubble_ui.h"
+#endif
+
+ChooserBubbleDelegate::ChooserBubbleDelegate(Browser* browser)
+ : browser_(browser) {}
+
+ChooserBubbleDelegate::~ChooserBubbleDelegate() {}
+
+std::string ChooserBubbleDelegate::GetName() const {
+ return "ChooserBubble";
+}
+
+// TODO(juncai): Add chooser bubble ui cocoa code for Mac.
+// Please refer to http://crbug.com/492204 for more information.
+#if defined(OS_MACOSX)
+scoped_ptr<BubbleUi> ChooserBubbleDelegate::BuildBubbleUi() {
+ return scoped_ptr<BubbleUi>();
+}
+#endif
« no previous file with comments | « chrome/browser/ui/website_settings/chooser_bubble_delegate.h ('k') | chrome/browser/usb/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698