| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 class ChooserController; | 11 class ChooserController; |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class WebContents; | 14 class WebContents; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class ChromeExtensionChooserDialog { | 17 class ChromeExtensionChooserDialog { |
| 18 public: | 18 public: |
| 19 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) | 19 explicit ChromeExtensionChooserDialog(content::WebContents* web_contents) |
| 20 : web_contents_(web_contents) {} | 20 : web_contents_(web_contents) {} |
| 21 ~ChromeExtensionChooserDialog() {} | 21 ~ChromeExtensionChooserDialog() {} |
| 22 | 22 |
| 23 content::WebContents* web_contents() const { return web_contents_; } | 23 content::WebContents* web_contents() const { return web_contents_; } |
| 24 | 24 |
| 25 // TODO(juncai): remove this preprocessor directive once the non-Mac | |
| 26 // implementation is done. | |
| 27 #if defined(OS_MACOSX) | |
| 28 void ShowDialog(ChooserController* chooser_controller) const; | 25 void ShowDialog(ChooserController* chooser_controller) const; |
| 29 #endif // defined(OS_MACOSX) | |
| 30 | 26 |
| 31 private: | 27 private: |
| 32 content::WebContents* web_contents_; | 28 content::WebContents* web_contents_; |
| 33 | 29 |
| 34 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); | 30 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionChooserDialog); |
| 35 }; | 31 }; |
| 36 | 32 |
| 37 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ | 33 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ |
| OLD | NEW |