OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public ExtensionInstallPrompt::Delegate, | 27 public ExtensionInstallPrompt::Delegate, |
28 public ConstrainedWindowMacDelegate { | 28 public ConstrainedWindowMacDelegate { |
29 public: | 29 public: |
30 ExtensionInstallDialogController( | 30 ExtensionInstallDialogController( |
31 const ExtensionInstallPrompt::ShowParams& show_params, | 31 const ExtensionInstallPrompt::ShowParams& show_params, |
32 ExtensionInstallPrompt::Delegate* delegate, | 32 ExtensionInstallPrompt::Delegate* delegate, |
33 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); | 33 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); |
34 virtual ~ExtensionInstallDialogController(); | 34 virtual ~ExtensionInstallDialogController(); |
35 | 35 |
36 // ExtensionInstallPrompt::Delegate implementation. | 36 // ExtensionInstallPrompt::Delegate implementation. |
37 virtual void InstallUIProceed() OVERRIDE; | 37 virtual void InstallUIProceed() override; |
38 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 38 virtual void InstallUIAbort(bool user_initiated) override; |
39 | 39 |
40 // ConstrainedWindowMacDelegate implementation. | 40 // ConstrainedWindowMacDelegate implementation. |
41 virtual void OnConstrainedWindowClosed( | 41 virtual void OnConstrainedWindowClosed( |
42 ConstrainedWindowMac* window) OVERRIDE; | 42 ConstrainedWindowMac* window) override; |
43 | 43 |
44 ConstrainedWindowMac* constrained_window() const { | 44 ConstrainedWindowMac* constrained_window() const { |
45 return constrained_window_.get(); | 45 return constrained_window_.get(); |
46 } | 46 } |
47 ExtensionInstallViewController* view_controller() const { | 47 ExtensionInstallViewController* view_controller() const { |
48 return view_controller_; | 48 return view_controller_; |
49 } | 49 } |
50 | 50 |
51 private: | 51 private: |
52 ExtensionInstallPrompt::Delegate* delegate_; | 52 ExtensionInstallPrompt::Delegate* delegate_; |
53 base::scoped_nsobject<ExtensionInstallViewController> view_controller_; | 53 base::scoped_nsobject<ExtensionInstallViewController> view_controller_; |
54 scoped_ptr<ConstrainedWindowMac> constrained_window_; | 54 scoped_ptr<ConstrainedWindowMac> constrained_window_; |
55 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 55 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ | 58 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ |
OLD | NEW |