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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "chrome/browser/extensions/extension_install_ui.h" | 15 #include "chrome/browser/extensions/extension_install_ui.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 | 17 |
18 class Extension; | |
19 class Profile; | 18 class Profile; |
20 | 19 |
21 // Displays the extension or bundle install prompt, and notifies the | 20 // Displays the extension or bundle install prompt, and notifies the |
22 // ExtensionInstallUI::Delegate of success or failure. | 21 // ExtensionInstallUI::Delegate of success or failure. |
23 @interface ExtensionInstallDialogController : NSWindowController { | 22 @interface ExtensionInstallDialogController : NSWindowController { |
24 @private | 23 @private |
25 IBOutlet NSImageView* iconView_; | 24 IBOutlet NSImageView* iconView_; |
26 IBOutlet NSTextField* titleField_; | 25 IBOutlet NSTextField* titleField_; |
27 IBOutlet NSTextField* itemsField_; | 26 IBOutlet NSTextField* itemsField_; |
28 IBOutlet NSButton* cancelButton_; | 27 IBOutlet NSButton* cancelButton_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 delegate:(ExtensionInstallUI::Delegate*)delegate | 61 delegate:(ExtensionInstallUI::Delegate*)delegate |
63 prompt:(const ExtensionInstallUI::Prompt&)prompt; | 62 prompt:(const ExtensionInstallUI::Prompt&)prompt; |
64 - (void)runAsModalSheet; | 63 - (void)runAsModalSheet; |
65 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link. | 64 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link. |
66 - (IBAction)cancel:(id)sender; | 65 - (IBAction)cancel:(id)sender; |
67 - (IBAction)ok:(id)sender; | 66 - (IBAction)ok:(id)sender; |
68 | 67 |
69 @end | 68 @end |
70 | 69 |
71 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ | 70 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_DIALOG_CONTROLLE
R_H_ |
OLD | NEW |