Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/browser/ui/cocoa/sad_tab_view.mm

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698