| 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H_ |
| 7 | 7 |
| 8 #include "app/gfx/chrome_font.h" | 8 #include "app/gfx/chrome_font.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "views/view.h" | 10 #include "views/view.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Overridden from views::View: | 34 // Overridden from views::View: |
| 35 virtual void Paint(ChromeCanvas* canvas); | 35 virtual void Paint(ChromeCanvas* canvas); |
| 36 virtual void Layout(); | 36 virtual void Layout(); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 static void InitClass(); | 39 static void InitClass(); |
| 40 | 40 |
| 41 // Assorted resources for display. | 41 // Assorted resources for display. |
| 42 static SkBitmap* sad_tab_bitmap_; | 42 static SkBitmap* sad_tab_bitmap_; |
| 43 static ChromeFont* title_font_; | 43 static gfx::Font* title_font_; |
| 44 static ChromeFont* message_font_; | 44 static gfx::Font* message_font_; |
| 45 static std::wstring title_; | 45 static std::wstring title_; |
| 46 static std::wstring message_; | 46 static std::wstring message_; |
| 47 static int title_width_; | 47 static int title_width_; |
| 48 | 48 |
| 49 // Regions within the display for different components, populated by | 49 // Regions within the display for different components, populated by |
| 50 // Layout(). | 50 // Layout(). |
| 51 gfx::Rect icon_bounds_; | 51 gfx::Rect icon_bounds_; |
| 52 gfx::Rect title_bounds_; | 52 gfx::Rect title_bounds_; |
| 53 gfx::Rect message_bounds_; | 53 gfx::Rect message_bounds_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(SadTabView); | 55 DISALLOW_COPY_AND_ASSIGN(SadTabView); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H__ | 58 #endif // CHROME_BROWSER_VIEWS_SAD_TAB_VIEW_H__ |
| OLD | NEW |