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

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

Issue 3809005: Moves instant back into flags. (Closed) Base URL: http://git.chromium.org/git/chromium.git
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
« no previous file with comments | « chrome/browser/views/options/options_group_view.h ('k') | chrome/renderer/search_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vsstyle.h> 5 #include <vsstyle.h>
6 #include <vssym32.h> 6 #include <vssym32.h>
7 7
8 #include "chrome/browser/views/options/options_group_view.h" 8 #include "chrome/browser/views/options/options_group_view.h"
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 title_label_->SetMultiLine(true); 46 title_label_->SetMultiLine(true);
47 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 47 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
48 48
49 description_label_->SetMultiLine(true); 49 description_label_->SetMultiLine(true);
50 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 50 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
51 51
52 SetAccessibleName(title); 52 SetAccessibleName(title);
53 contents->SetAccessibleName(title); 53 contents->SetAccessibleName(title);
54 } 54 }
55 55
56 OptionsGroupView::~OptionsGroupView() {
57 }
58
59 void OptionsGroupView::SetHighlighted(bool highlighted) { 56 void OptionsGroupView::SetHighlighted(bool highlighted) {
60 highlighted_ = highlighted; 57 highlighted_ = highlighted;
61 SchedulePaint(); 58 SchedulePaint();
62 } 59 }
63 60
64 int OptionsGroupView::GetContentsWidth() const { 61 int OptionsGroupView::GetContentsWidth() const {
65 return contents_->width(); 62 return contents_->width();
66 } 63 }
67 64
68 /////////////////////////////////////////////////////////////////////////////// 65 ///////////////////////////////////////////////////////////////////////////////
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const int single_column_layout_id = 1; 129 const int single_column_layout_id = 1;
133 column_set = layout->AddColumnSet(single_column_layout_id); 130 column_set = layout->AddColumnSet(single_column_layout_id);
134 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, 131 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1,
135 GridLayout::USE_PREF, 0, 0); 132 GridLayout::USE_PREF, 0, 0);
136 133
137 separator_ = new views::Separator; 134 separator_ = new views::Separator;
138 layout->StartRow(0, single_column_layout_id); 135 layout->StartRow(0, single_column_layout_id);
139 layout->AddView(separator_); 136 layout->AddView(separator_);
140 } 137 }
141 } 138 }
OLDNEW
« no previous file with comments | « chrome/browser/views/options/options_group_view.h ('k') | chrome/renderer/search_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698