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/google_toolbox_for_mac/src/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/geometry/point.h" |
sky
2014/07/24 17:29:56
sort
| |
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 |
23 // The color for the border of this bubble view. | 23 // The color for the border of this bubble view. |
24 const float kBubbleWindowEdge = 0.7f; | 24 const float kBubbleWindowEdge = 0.7f; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 | 288 |
289 - (void)clickCancel { | 289 - (void)clickCancel { |
290 [self cancel:self]; | 290 [self cancel:self]; |
291 } | 291 } |
292 | 292 |
293 - (void)clickLink { | 293 - (void)clickLink { |
294 [self textView:messageLabel_.get() clickedOnLink:nil atIndex:0]; | 294 [self textView:messageLabel_.get() clickedOnLink:nil atIndex:0]; |
295 } | 295 } |
296 | 296 |
297 @end | 297 @end |
OLD | NEW |