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

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

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/sad_tab_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/google/google_util.h" 10 #include "chrome/browser/google/google_util.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 12 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "gfx/canvas.h" 14 #include "gfx/canvas.h"
15 #include "gfx/canvas_skia.h" 15 #include "gfx/canvas_skia.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 rb.GetFont(ResourceBundle::BaseFont).DeriveFont(kMessageFontSizeDelta)); 150 rb.GetFont(ResourceBundle::BaseFont).DeriveFont(kMessageFontSizeDelta));
151 sad_tab_bitmap_ = rb.GetBitmapNamed(IDR_SAD_TAB); 151 sad_tab_bitmap_ = rb.GetBitmapNamed(IDR_SAD_TAB);
152 152
153 title_ = UTF16ToWide(l10n_util::GetStringUTF16(IDS_SAD_TAB_TITLE)); 153 title_ = UTF16ToWide(l10n_util::GetStringUTF16(IDS_SAD_TAB_TITLE));
154 title_width_ = title_font_->GetStringWidth(WideToUTF16Hack(title_)); 154 title_width_ = title_font_->GetStringWidth(WideToUTF16Hack(title_));
155 message_ = UTF16ToWide(l10n_util::GetStringUTF16(IDS_SAD_TAB_MESSAGE)); 155 message_ = UTF16ToWide(l10n_util::GetStringUTF16(IDS_SAD_TAB_MESSAGE));
156 156
157 initialized = true; 157 initialized = true;
158 } 158 }
159 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/restart_message_box.cc ('k') | chrome/browser/ui/views/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698