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" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/extensions/bundle_installer.h" | 14 #include "chrome/browser/extensions/bundle_installer.h" |
15 #import "chrome/browser/ui/chrome_style.h" | 15 #import "chrome/browser/ui/chrome_style.h" |
16 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" | |
17 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
18 #include "content/public/browser/page_navigator.h" | 17 #include "content/public/browser/page_navigator.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
20 #include "skia/ext/skia_utils_mac.h" | 19 #include "skia/ext/skia_utils_mac.h" |
21 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 20 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 21 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "ui/base/l10n/l10n_util_mac.h" | 23 #include "ui/base/l10n/l10n_util_mac.h" |
24 #include "ui/gfx/image/image_skia_util_mac.h" | 24 #include "ui/gfx/image/image_skia_util_mac.h" |
25 | 25 |
26 using content::OpenURLParams; | 26 using content::OpenURLParams; |
27 using content::Referrer; | 27 using content::Referrer; |
28 using extensions::BundleInstaller; | 28 using extensions::BundleInstaller; |
29 | 29 |
30 @interface ExtensionInstallViewController () | 30 @interface ExtensionInstallViewController () |
31 - (BOOL)isBundleInstall; | 31 - (BOOL)isBundleInstall; |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 return warnings; | 533 return warnings; |
534 } | 534 } |
535 | 535 |
536 - (void)updateViewFrame:(NSRect)frame { | 536 - (void)updateViewFrame:(NSRect)frame { |
537 NSWindow* window = [[self view] window]; | 537 NSWindow* window = [[self view] window]; |
538 [window setFrame:[window frameRectForContentRect:frame] display:YES]; | 538 [window setFrame:[window frameRectForContentRect:frame] display:YES]; |
539 [[self view] setFrame:frame]; | 539 [[self view] setFrame:frame]; |
540 } | 540 } |
541 | 541 |
542 @end | 542 @end |
OLD | NEW |