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

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

Issue 6541031: Integrate gfx::Image into the ResourceBundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some comments Created 9 years, 10 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/speech_input_window_controller.mm ('k') | chrome/browser/ui/cocoa/tabpose_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698