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 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/mac/bundle_locations.h" | 9 #include "base/mac/bundle_locations.h" |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 prompt_ = prompt; | 204 prompt_ = prompt; |
205 warnings_.reset([[self buildWarnings:*prompt] retain]); | 205 warnings_.reset([[self buildWarnings:*prompt] retain]); |
206 } | 206 } |
207 return self; | 207 return self; |
208 } | 208 } |
209 | 209 |
210 - (IBAction)storeLinkClicked:(id)sender { | 210 - (IBAction)storeLinkClicked:(id)sender { |
211 GURL store_url(extension_urls::GetWebstoreItemDetailURLPrefix() + | 211 GURL store_url(extension_urls::GetWebstoreItemDetailURLPrefix() + |
212 prompt_->extension()->id()); | 212 prompt_->extension()->id()); |
213 navigator_->OpenURL(OpenURLParams( | 213 navigator_->OpenURL(OpenURLParams( |
214 store_url, Referrer(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, | 214 store_url, Referrer(), NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, |
215 false)); | 215 false)); |
216 | 216 |
217 delegate_->InstallUIAbort(/*user_initiated=*/true); | 217 delegate_->InstallUIAbort(/*user_initiated=*/true); |
218 } | 218 } |
219 | 219 |
220 - (IBAction)cancel:(id)sender { | 220 - (IBAction)cancel:(id)sender { |
221 delegate_->InstallUIAbort(/*user_initiated=*/true); | 221 delegate_->InstallUIAbort(/*user_initiated=*/true); |
222 } | 222 } |
223 | 223 |
224 - (IBAction)ok:(id)sender { | 224 - (IBAction)ok:(id)sender { |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 735 } |
736 | 736 |
737 - (void)accessibilityPerformAction:(NSString*)action { | 737 - (void)accessibilityPerformAction:(NSString*)action { |
738 if ([action isEqualToString:NSAccessibilityPressAction]) | 738 if ([action isEqualToString:NSAccessibilityPressAction]) |
739 [self handleLinkClicked]; | 739 [self handleLinkClicked]; |
740 else | 740 else |
741 [super accessibilityPerformAction:action]; | 741 [super accessibilityPerformAction:action]; |
742 } | 742 } |
743 | 743 |
744 @end | 744 @end |
OLD | NEW |