| 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_OPTIONS_OPTIONS_GROUP_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ |
| 6 #define CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ |
| 7 | 7 |
| 8 #include "views/view.h" | 8 #include "views/view.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 virtual ~OptionsGroupView() {} | 27 virtual ~OptionsGroupView() {} |
| 28 | 28 |
| 29 // Sets the group as being highlighted to attract attention. | 29 // Sets the group as being highlighted to attract attention. |
| 30 void SetHighlighted(bool highlighted); | 30 void SetHighlighted(bool highlighted); |
| 31 | 31 |
| 32 // Retrieves the width of the ContentsView. Used to help size wrapping items. | 32 // Retrieves the width of the ContentsView. Used to help size wrapping items. |
| 33 int GetContentsWidth() const; | 33 int GetContentsWidth() const; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 // views::View overrides: | 36 // views::View overrides: |
| 37 virtual void Paint(ChromeCanvas* canvas); | 37 virtual void Paint(gfx::Canvas* canvas); |
| 38 virtual void ViewHierarchyChanged(bool is_add, | 38 virtual void ViewHierarchyChanged(bool is_add, |
| 39 views::View* parent, | 39 views::View* parent, |
| 40 views::View* child); | 40 views::View* child); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 void Init(); | 43 void Init(); |
| 44 | 44 |
| 45 views::View* contents_; | 45 views::View* contents_; |
| 46 views::Label* title_label_; | 46 views::Label* title_label_; |
| 47 views::Label* description_label_; | 47 views::Label* description_label_; |
| 48 views::Separator* separator_; | 48 views::Separator* separator_; |
| 49 | 49 |
| 50 // True if we should show a separator line below the contents of this | 50 // True if we should show a separator line below the contents of this |
| 51 // section. | 51 // section. |
| 52 bool show_separator_; | 52 bool show_separator_; |
| 53 | 53 |
| 54 // True if this section should have a highlighted treatment to draw the | 54 // True if this section should have a highlighted treatment to draw the |
| 55 // user's attention. | 55 // user's attention. |
| 56 bool highlighted_; | 56 bool highlighted_; |
| 57 | 57 |
| 58 DISALLOW_EVIL_CONSTRUCTORS(OptionsGroupView); | 58 DISALLOW_EVIL_CONSTRUCTORS(OptionsGroupView); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // #ifndef CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ | 61 #endif // #ifndef CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ |
| OLD | NEW |