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

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

Issue 62064: UI font localization part 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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) 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 #ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H_ 5 #ifndef CHROME_BROWSER_VIEWS_SAD_TAB_H_
6 #define CHROME_BROWSER_VIEWS_SAD_TAB_H_ 6 #define CHROME_BROWSER_VIEWS_SAD_TAB_H_
7 7
8 #include "chrome/common/gfx/chrome_font.h" 8 #include "chrome/common/gfx/chrome_font.h"
9 #include "chrome/views/view.h" 9 #include "chrome/views/view.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Overridden from views::View: 33 // Overridden from views::View:
34 virtual void Paint(ChromeCanvas* canvas); 34 virtual void Paint(ChromeCanvas* canvas);
35 virtual void Layout(); 35 virtual void Layout();
36 36
37 private: 37 private:
38 static void InitClass(); 38 static void InitClass();
39 39
40 // Assorted resources for display. 40 // Assorted resources for display.
41 static SkBitmap* sad_tab_bitmap_; 41 static SkBitmap* sad_tab_bitmap_;
42 static ChromeFont title_font_; 42 static ChromeFont* title_font_;
43 static ChromeFont message_font_; 43 static ChromeFont* message_font_;
44 static std::wstring title_; 44 static std::wstring title_;
45 static std::wstring message_; 45 static std::wstring message_;
46 static int title_width_; 46 static int title_width_;
47 47
48 // Regions within the display for different components, populated by 48 // Regions within the display for different components, populated by
49 // Layout(). 49 // Layout().
50 gfx::Rect icon_bounds_; 50 gfx::Rect icon_bounds_;
51 gfx::Rect title_bounds_; 51 gfx::Rect title_bounds_;
52 gfx::Rect message_bounds_; 52 gfx::Rect message_bounds_;
53 53
54 DISALLOW_EVIL_CONSTRUCTORS(SadTabView); 54 DISALLOW_EVIL_CONSTRUCTORS(SadTabView);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_VIEWS_SAD_TAB_H__ 57 #endif // CHROME_BROWSER_VIEWS_SAD_TAB_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698