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

Side by Side 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, 6 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 2016 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 EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
6 #define EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
7
8 #include "base/macros.h"
9
10 class ChooserController;
11 class GURL;
12
13 namespace content {
14 class WebContents;
15 }
16
17 namespace extensions {
18
19 // ExtensionChooserDialog class is an interface for some functions that need
20 // to be called on the extensions side, but the implemention is done on the
21 // Chrome side.
22 class ExtensionChooserDialog {
23 public:
24 explicit ExtensionChooserDialog(content::WebContents* web_contents);
25 virtual ~ExtensionChooserDialog();
26
27 void OpenHelpCenterUrl() const;
28
29 virtual void ShowDialog(ChooserController* chooser_controller) const;
30
31 virtual GURL GetHelpCenterUrl() const = 0;
32
33 protected:
34 content::WebContents* web_contents() const { return web_contents_; }
35
36 private:
37 content::WebContents* web_contents_;
38
39 DISALLOW_COPY_AND_ASSIGN(ExtensionChooserDialog);
40 };
41
42 } // namespace extensions
43
44 #endif // EXTENSIONS_BROWSER_UI_EXTENSION_CHOOSER_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698