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

Side by Side Diff: chrome/browser/views/sad_tab_view.cc

Issue 24011: chrome_resources take 2 (Closed)
Patch Set: rebase Created 11 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
« no previous file with comments | « chrome/browser/views/page_info_window.cc ('k') | chrome/browser/views/shelf_item_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/sad_tab_view.h" 5 #include "chrome/browser/views/sad_tab_view.h"
6 6
7 #include "base/gfx/size.h" 7 #include "base/gfx/size.h"
8 #include "chrome/app/theme/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #include "chrome/common/gfx/chrome_canvas.h" 9 #include "chrome/common/gfx/chrome_canvas.h"
10 #include "chrome/common/l10n_util.h" 10 #include "chrome/common/l10n_util.h"
11 #include "chrome/common/resource_bundle.h" 11 #include "chrome/common/resource_bundle.h"
12 #include "generated_resources.h" 12 #include "generated_resources.h"
13 #include "skia/ext/skia_utils.h" 13 #include "skia/ext/skia_utils.h"
14 #include "skia/include/SkGradientShader.h" 14 #include "skia/include/SkGradientShader.h"
15 15
16 static const int kSadTabOffset = -64; 16 static const int kSadTabOffset = -64;
17 static const int kIconTitleSpacing = 20; 17 static const int kIconTitleSpacing = 20;
18 static const int kTitleMessageSpacing = 15; 18 static const int kTitleMessageSpacing = 15;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 title_ = l10n_util::GetString(IDS_SAD_TAB_TITLE); 93 title_ = l10n_util::GetString(IDS_SAD_TAB_TITLE);
94 title_width_ = title_font_.GetStringWidth(title_); 94 title_width_ = title_font_.GetStringWidth(title_);
95 message_ = l10n_util::GetString(IDS_SAD_TAB_MESSAGE); 95 message_ = l10n_util::GetString(IDS_SAD_TAB_MESSAGE);
96 96
97 initialized = true; 97 initialized = true;
98 } 98 }
99 } 99 }
100 100
101 101
OLDNEW
« no previous file with comments | « chrome/browser/views/page_info_window.cc ('k') | chrome/browser/views/shelf_item_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698