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/external_protocol_dialog.h" | 5 #import "chrome/browser/ui/cocoa/external_protocol_dialog.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 9 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/shell_integration.h" | 11 #include "chrome/browser/shell_integration.h" |
12 #include "chrome/browser/tab_contents/tab_util.h" | 12 #include "chrome/browser/tab_contents/tab_util.h" |
13 #include "chrome/grit/chromium_strings.h" | 13 #include "chrome/grit/chromium_strings.h" |
14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
15 #include "components/strings/grit/components_strings.h" | |
16 #include "ui/base/l10n/l10n_util_mac.h" | 15 #include "ui/base/l10n/l10n_util_mac.h" |
17 #include "ui/gfx/text_elider.h" | 16 #include "ui/gfx/text_elider.h" |
18 | 17 |
19 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
20 // ExternalProtocolDialogController | 19 // ExternalProtocolDialogController |
21 | 20 |
22 @interface ExternalProtocolDialogController(Private) | 21 @interface ExternalProtocolDialogController(Private) |
23 - (void)alertEnded:(NSAlert *)alert | 22 - (void)alertEnded:(NSAlert *)alert |
24 returnCode:(int)returnCode | 23 returnCode:(int)returnCode |
25 contextInfo:(void*)contextInfo; | 24 contextInfo:(void*)contextInfo; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 115 |
117 ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url_, | 116 ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url_, |
118 web_contents); | 117 web_contents); |
119 } | 118 } |
120 } | 119 } |
121 | 120 |
122 [self autorelease]; | 121 [self autorelease]; |
123 } | 122 } |
124 | 123 |
125 @end | 124 @end |
OLD | NEW |