| Index: chrome/browser/extensions/chrome_extension_chooser_dialog.h
|
| diff --git a/chrome/browser/extensions/chrome_extension_chooser_dialog.h b/chrome/browser/extensions/chrome_extension_chooser_dialog.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..929cd4962cee0ae0a4753bebdce0e3a8e2edcdfa
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/chrome_extension_chooser_dialog.h
|
| @@ -0,0 +1,30 @@
|
| +// 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 CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "build/build_config.h"
|
| +
|
| +#include "extensions/browser/ui/extension_chooser_dialog.h"
|
| +
|
| +// Chrome implementation of the extensions::ExtensionChooserDialog.
|
| +class ChromeExtensionChooserDialog : public extensions::ExtensionChooserDialog {
|
| + public:
|
| + explicit ChromeExtensionChooserDialog(content::WebContents* web_contents)
|
| + : extensions::ExtensionChooserDialog(web_contents) {}
|
| + ~ChromeExtensionChooserDialog() override {}
|
| +
|
| +// TODO(juncai): remove this preprocessor directive once the non-Mac
|
| +// implementation is done.
|
| +#if defined(OS_MACOSX)
|
| + // extensions::ExtensionChooserDialog:
|
| + void ShowDialog(ChooserController* chooser_controller) const override;
|
| +#endif // defined(OS_MACOSX)
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_
|
|
|