OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const ExtensionInstallPrompt::ShowParams& show_params, | 25 const ExtensionInstallPrompt::ShowParams& show_params, |
26 ExtensionInstallPrompt::Delegate* delegate, | 26 ExtensionInstallPrompt::Delegate* delegate, |
27 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); | 27 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); |
28 virtual ~WindowedInstallDialogController(); | 28 virtual ~WindowedInstallDialogController(); |
29 | 29 |
30 // Invoked by the -[NSWindow windowWillClose:] notification after a dialog | 30 // Invoked by the -[NSWindow windowWillClose:] notification after a dialog |
31 // choice is invoked. Releases owned resources, then deletes |this|. | 31 // choice is invoked. Releases owned resources, then deletes |this|. |
32 void OnWindowClosing(); | 32 void OnWindowClosing(); |
33 | 33 |
34 // ExtensionInstallPrompt::Delegate: | 34 // ExtensionInstallPrompt::Delegate: |
35 virtual void InstallUIProceed() OVERRIDE; | 35 virtual void InstallUIProceed() override; |
36 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 36 virtual void InstallUIAbort(bool user_initiated) override; |
37 | 37 |
38 private: | 38 private: |
39 FRIEND_TEST_ALL_PREFIXES(WindowedInstallDialogControllerBrowserTest, | 39 FRIEND_TEST_ALL_PREFIXES(WindowedInstallDialogControllerBrowserTest, |
40 ShowInstallDialog); | 40 ShowInstallDialog); |
41 ExtensionInstallViewController* GetViewController(); | 41 ExtensionInstallViewController* GetViewController(); |
42 | 42 |
43 ExtensionInstallPrompt::Delegate* delegate_; | 43 ExtensionInstallPrompt::Delegate* delegate_; |
44 base::scoped_nsobject<WindowedInstallController> install_controller_; | 44 base::scoped_nsobject<WindowedInstallController> install_controller_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(WindowedInstallDialogController); | 46 DISALLOW_COPY_AND_ASSIGN(WindowedInstallDialogController); |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER
_H_ | 49 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_WINDOWED_INSTALL_DIALOG_CONTROLLER
_H_ |
OLD | NEW |