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

Unified Diff: extensions/browser/ui/extension_chooser_dialog.h

Issue 2005443002: Implement bluetooth chooser for Chrome Apps on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_chooser_bubble_ui_cocoa
Patch Set: rebase and display app name on the chooser title Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/ui/extension_chooser_dialog.h
diff --git a/extensions/browser/ui/extension_chooser_dialog.h b/extensions/browser/ui/extension_chooser_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..294f5bfba698b51df2991bc8dd207a83d487e39f
--- /dev/null
+++ b/extensions/browser/ui/extension_chooser_dialog.h
@@ -0,0 +1,44 @@
+// Copyright 2016 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.
+
+#ifndef EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
+#define EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
+
+#include "base/macros.h"
+
+class ChooserController;
+class GURL;
+
+namespace content {
+class WebContents;
+}
+
+namespace extensions {
+
+// ExtensionChooserDialog class is an interface for some functions that need
+// to be called on the extensions side, but the implemention is done on the
+// Chrome side.
+class ExtensionChooserDialog {
+ public:
+ explicit ExtensionChooserDialog(content::WebContents* web_contents);
+ virtual ~ExtensionChooserDialog();
+
+ void OpenHelpCenterUrl() const;
+
+ virtual void ShowDialog(ChooserController* chooser_controller) const;
+
+ virtual GURL GetHelpCenterUrl() const = 0;
+
+ protected:
+ content::WebContents* web_contents() const { return web_contents_; }
+
+ private:
+ content::WebContents* web_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionChooserDialog);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_

Powered by Google App Engine
This is Rietveld 408576698