OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/cocoa/page_info_window_mac.h" | 5 #include "chrome/browser/cocoa/page_info_window_mac.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/scoped_cftyperef.h" | |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
14 #import "chrome/browser/cocoa/page_info_window_controller.h" | 13 #import "chrome/browser/cocoa/page_info_window_controller.h" |
15 #include "chrome/browser/cert_store.h" | 14 #include "chrome/browser/cert_store.h" |
16 #include "chrome/browser/certificate_viewer.h" | 15 #include "chrome/browser/certificate_viewer.h" |
17 #include "chrome/browser/page_info_window.h" | 16 #include "chrome/browser/page_info_window.h" |
18 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
20 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 [cert_button setEnabled:YES]; | 228 [cert_button setEnabled:YES]; |
230 } | 229 } |
231 } | 230 } |
232 | 231 |
233 // Resize the window. Only animate if the window is visible, otherwise it | 232 // Resize the window. Only animate if the window is visible, otherwise it |
234 // could be "growing" while it's opening, looking awkward. | 233 // could be "growing" while it's opening, looking awkward. |
235 [[controller_ window] setFrame:window_frame | 234 [[controller_ window] setFrame:window_frame |
236 display:YES | 235 display:YES |
237 animate:[[controller_ window] isVisible]]; | 236 animate:[[controller_ window] isVisible]]; |
238 } | 237 } |
OLD | NEW |