| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/ui/cocoa/tab_contents/sad_tab_view.h" | 5 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" |
| 9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 10 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 10 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/gfx/image.h" |
| 12 | 13 |
| 13 // Offset above vertical middle of page where contents of page start. | 14 // Offset above vertical middle of page where contents of page start. |
| 14 static const CGFloat kSadTabOffset = -64; | 15 static const CGFloat kSadTabOffset = -64; |
| 15 // Padding between icon and title. | 16 // Padding between icon and title. |
| 16 static const CGFloat kIconTitleSpacing = 20; | 17 static const CGFloat kIconTitleSpacing = 20; |
| 17 // Padding between title and message. | 18 // Padding between title and message. |
| 18 static const CGFloat kTitleMessageSpacing = 15; | 19 static const CGFloat kTitleMessageSpacing = 15; |
| 19 // Padding between message and link. | 20 // Padding between message and link. |
| 20 static const CGFloat kMessageLinkSpacing = 15; | 21 static const CGFloat kMessageLinkSpacing = 15; |
| 21 // Paddings on left and right of page. | 22 // Paddings on left and right of page. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 119 } |
| 119 | 120 |
| 120 - (void)removeLinkButton { | 121 - (void)removeLinkButton { |
| 121 if (linkButton_) { | 122 if (linkButton_) { |
| 122 [linkButton_ removeFromSuperview]; | 123 [linkButton_ removeFromSuperview]; |
| 123 linkButton_ = nil; | 124 linkButton_ = nil; |
| 124 } | 125 } |
| 125 } | 126 } |
| 126 | 127 |
| 127 @end | 128 @end |
| OLD | NEW |