OLD | NEW |
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 Loading... |
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__ |
OLD | NEW |