| 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/confirm_bubble_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/confirm_bubble_cocoa.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "chrome/browser/themes/theme_service.h" | 8 #include "chrome/browser/themes/theme_service.h" |
| 9 #import "chrome/browser/ui/cocoa/confirm_bubble_controller.h" | 9 #import "chrome/browser/ui/cocoa/confirm_bubble_controller.h" |
| 10 #include "chrome/browser/ui/confirm_bubble.h" | 10 #include "chrome/browser/ui/confirm_bubble.h" |
| 11 #include "chrome/browser/ui/confirm_bubble_model.h" | 11 #include "chrome/browser/ui/confirm_bubble_model.h" |
| 12 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" | 12 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect
.h" |
| 13 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
| 14 #include "ui/gfx/point.h" | 14 #include "ui/gfx/point.h" |
| 15 | 15 |
| 16 // The width for the message text. We break lines so the specified message fits | 16 // The width for the message text. We break lines so the specified message fits |
| 17 // into this width. | 17 // into this width. |
| 18 const int kMaxMessageWidth = 400; | 18 const int kMaxMessageWidth = 400; |
| 19 | 19 |
| 20 // The corner redius of this bubble view. | 20 // The corner redius of this bubble view. |
| 21 const int kBubbleCornerRadius = 3; | 21 const int kBubbleCornerRadius = 3; |
| 22 | 22 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 - (void)clickCancel { | 288 - (void)clickCancel { |
| 289 [self cancel:self]; | 289 [self cancel:self]; |
| 290 } | 290 } |
| 291 | 291 |
| 292 - (void)clickLink { | 292 - (void)clickLink { |
| 293 [self textView:messageLabel_.get() clickedOnLink:nil atIndex:0]; | 293 [self textView:messageLabel_.get() clickedOnLink:nil atIndex:0]; |
| 294 } | 294 } |
| 295 | 295 |
| 296 @end | 296 @end |
| OLD | NEW |