OLD | NEW |
---|---|
1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 private: | 50 private: |
51 // Assorted resources for display. | 51 // Assorted resources for display. |
52 SkBitmap* sad_tab_bitmap_; | 52 SkBitmap* sad_tab_bitmap_; |
53 gfx::Font* title_font_; | 53 gfx::Font* title_font_; |
54 gfx::Font* message_font_; | 54 gfx::Font* message_font_; |
55 string16 title_; | 55 string16 title_; |
56 string16 message_; | 56 string16 message_; |
57 int title_width_; | 57 int title_width_; |
58 | 58 |
59 TabContents* tab_contents_; | 59 TabContents* tab_contents_; |
60 views::Link* learn_more_link_; | 60 string16 help_prefix_; |
Peter Kasting
2011/08/12 16:53:40
Instead of doing all the work to size and draw str
msw
2011/08/30 04:09:06
Done.
| |
61 string16 help_suffix_; | |
62 views::Link* help_link_; | |
61 | 63 |
62 // Regions within the display for different components, populated by | 64 // Regions within the display for different components, populated by |
63 // Layout(). | 65 // Layout(). |
64 gfx::Rect icon_bounds_; | 66 gfx::Rect icon_bounds_; |
65 gfx::Rect title_bounds_; | 67 gfx::Rect title_bounds_; |
66 gfx::Rect message_bounds_; | 68 gfx::Rect message_bounds_; |
67 gfx::Rect link_bounds_; | 69 gfx::Rect help_prefix_bounds_; |
70 gfx::Rect help_suffix_bounds_; | |
71 gfx::Rect help_link_bounds_; | |
68 | 72 |
69 Kind kind_; | 73 Kind kind_; |
70 bool painted_; | 74 bool painted_; |
71 | 75 |
72 DISALLOW_COPY_AND_ASSIGN(SadTabView); | 76 DISALLOW_COPY_AND_ASSIGN(SadTabView); |
73 }; | 77 }; |
74 | 78 |
75 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ | 79 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ |
OLD | NEW |