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