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

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

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « chrome/browser/views/sad_tab_view.h ('k') | chrome/browser/views/shell_dialogs_win.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 "app/gfx/canvas.h"
8 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 9 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "gfx/canvas.h"
11 #include "gfx/size.h" 11 #include "gfx/size.h"
12 #include "gfx/skia_util.h" 12 #include "gfx/skia_util.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/locale_settings.h" 14 #include "grit/locale_settings.h"
15 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
16 #include "third_party/skia/include/effects/SkGradientShader.h" 16 #include "third_party/skia/include/effects/SkGradientShader.h"
17 17
18 static const int kSadTabOffset = -64; 18 static const int kSadTabOffset = -64;
19 static const int kIconTitleSpacing = 20; 19 static const int kIconTitleSpacing = 20;
20 static const int kTitleMessageSpacing = 15; 20 static const int kTitleMessageSpacing = 15;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 rb.GetFont(ResourceBundle::BaseFont).DeriveFont(1)); 126 rb.GetFont(ResourceBundle::BaseFont).DeriveFont(1));
127 sad_tab_bitmap_ = rb.GetBitmapNamed(IDR_SAD_TAB); 127 sad_tab_bitmap_ = rb.GetBitmapNamed(IDR_SAD_TAB);
128 128
129 title_ = l10n_util::GetString(IDS_SAD_TAB_TITLE); 129 title_ = l10n_util::GetString(IDS_SAD_TAB_TITLE);
130 title_width_ = title_font_->GetStringWidth(title_); 130 title_width_ = title_font_->GetStringWidth(title_);
131 message_ = l10n_util::GetString(IDS_SAD_TAB_MESSAGE); 131 message_ = l10n_util::GetString(IDS_SAD_TAB_MESSAGE);
132 132
133 initialized = true; 133 initialized = true;
134 } 134 }
135 } 135 }
OLDNEW
« no previous file with comments | « chrome/browser/views/sad_tab_view.h ('k') | chrome/browser/views/shell_dialogs_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698