| 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/constrained_window/constrained_window_alert.h" | 5 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_alert.h" |
| 6 | 6 |
| 7 #import "base/logging.h" | 7 #import "base/logging.h" |
| 8 #import "chrome/browser/ui/chrome_style.h" | 8 #import "chrome/browser/ui/chrome_style.h" |
| 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" | 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" |
| 10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_control_u
tils.h" | 10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_control_u
tils.h" |
| 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" | 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" |
| 12 #import "chrome/browser/ui/cocoa/hover_close_button.h" | 12 #import "chrome/browser/ui/cocoa/hover_close_button.h" |
| 13 #include "skia/ext/skia_utils_mac.h" | 13 #include "skia/ext/skia_utils_mac.h" |
| 14 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 14 #include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutT
weaker.h" |
| 15 #include "ui/base/cocoa/controls/hyperlink_button_cell.h" | 15 #include "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 16 #include "ui/base/cocoa/window_size_constants.h" | 16 #include "ui/base/cocoa/window_size_constants.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const CGFloat kWindowMinWidth = 500; | 20 const CGFloat kWindowMinWidth = 500; |
| 21 const CGFloat kButtonGap = 6; | 21 const CGFloat kButtonGap = 6; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 frame.origin.y = windowHeight - | 270 frame.origin.y = windowHeight - |
| 271 chrome_style::kCloseButtonPadding - NSHeight(frame); | 271 chrome_style::kCloseButtonPadding - NSHeight(frame); |
| 272 [closeButton_ setFrame:frame]; | 272 [closeButton_ setFrame:frame]; |
| 273 } | 273 } |
| 274 | 274 |
| 275 - (NSButton*)linkView { | 275 - (NSButton*)linkView { |
| 276 return linkView_; | 276 return linkView_; |
| 277 } | 277 } |
| 278 | 278 |
| 279 @end | 279 @end |
| OLD | NEW |