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

Side by Side Diff: chrome/browser/views/options/options_group_view.h

Issue 3842003: Merge 62881 - Moves instant back into flags.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552/src/
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "views/view.h" 9 #include "views/view.h"
10 10
11 namespace views { 11 namespace views {
12 class Label; 12 class Label;
13 class Separator; 13 class Separator;
14 }; 14 };
15 15
16 /////////////////////////////////////////////////////////////////////////////// 16 ///////////////////////////////////////////////////////////////////////////////
17 // OptionsGroupView 17 // OptionsGroupView
18 // 18 //
19 // A helper View that gathers related options into groups with a title and 19 // A helper View that gathers related options into groups with a title and
20 // optional description. 20 // optional description.
21 // 21 //
22 class OptionsGroupView : public views::View { 22 class OptionsGroupView : public views::View {
23 public: 23 public:
24 OptionsGroupView(views::View* contents, 24 OptionsGroupView(views::View* contents,
25 const std::wstring& title, 25 const std::wstring& title,
26 const std::wstring& description, 26 const std::wstring& description,
27 bool show_separator); 27 bool show_separator);
28 virtual ~OptionsGroupView(); 28 virtual ~OptionsGroupView() {}
29 29
30 // Sets the group as being highlighted to attract attention. 30 // Sets the group as being highlighted to attract attention.
31 void SetHighlighted(bool highlighted); 31 void SetHighlighted(bool highlighted);
32 32
33 // Retrieves the width of the ContentsView. Used to help size wrapping items. 33 // Retrieves the width of the ContentsView. Used to help size wrapping items.
34 int GetContentsWidth() const; 34 int GetContentsWidth() const;
35 35
36 protected: 36 protected:
37 // views::View overrides: 37 // views::View overrides:
38 virtual AccessibilityTypes::Role GetAccessibleRole(); 38 virtual AccessibilityTypes::Role GetAccessibleRole();
(...skipping 15 matching lines...) Expand all
54 bool show_separator_; 54 bool show_separator_;
55 55
56 // True if this section should have a highlighted treatment to draw the 56 // True if this section should have a highlighted treatment to draw the
57 // user's attention. 57 // user's attention.
58 bool highlighted_; 58 bool highlighted_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(OptionsGroupView); 60 DISALLOW_COPY_AND_ASSIGN(OptionsGroupView);
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__ 63 #endif // CHROME_BROWSER_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/options/general_page_view.cc ('k') | chrome/browser/views/options/options_group_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698