OLD | NEW |
(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 CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" |
| 10 |
| 11 #include "extensions/browser/ui/extension_chooser_dialog.h" |
| 12 |
| 13 // Chrome implementation of the extensions::ExtensionChooserDialog. |
| 14 class ChromeExtensionChooserDialog : public extensions::ExtensionChooserDialog { |
| 15 public: |
| 16 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) |
| 17 : extensions::ExtensionChooserDialog(web_contents) {} |
| 18 ~ChromeExtensionChooserDialog() override {} |
| 19 |
| 20 // TODO(juncai): remove this preprocessor directive once the non-Mac |
| 21 // implementation is done. |
| 22 #if defined(OS_MACOSX) |
| 23 // extensions::ExtensionChooserDialog: |
| 24 void ShowDialog(ChooserController* chooser_controller) const override; |
| 25 #endif // defined(OS_MACOSX) |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
OLD | NEW |