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

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

Issue 6192007: Remove wstring from views. Part 3: Switch accessibility strings to string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 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 #include <vsstyle.h> 5 #include <vsstyle.h>
6 #include <vssym32.h> 6 #include <vssym32.h>
7 7
8 #include "chrome/browser/ui/views/options/options_group_view.h" 8 #include "chrome/browser/ui/views/options/options_group_view.h"
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
11 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
12 #include "base/string_number_conversions.h" 12 #include "base/string_number_conversions.h"
13 #include "base/utf_string_conversions.h"
13 #include "gfx/canvas.h" 14 #include "gfx/canvas.h"
14 #include "gfx/font.h" 15 #include "gfx/font.h"
15 #include "gfx/native_theme_win.h" 16 #include "gfx/native_theme_win.h"
16 #include "grit/locale_settings.h" 17 #include "grit/locale_settings.h"
17 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
18 #include "views/grid_layout.h" 19 #include "views/grid_layout.h"
19 #include "views/controls/label.h" 20 #include "views/controls/label.h"
20 #include "views/controls/separator.h" 21 #include "views/controls/separator.h"
21 #include "views/standard_layout.h" 22 #include "views/standard_layout.h"
22 23
(...skipping 20 matching lines...) Expand all
43 SkColor title_color = gfx::NativeTheme::instance()->GetThemeColorWithDefault( 44 SkColor title_color = gfx::NativeTheme::instance()->GetThemeColorWithDefault(
44 gfx::NativeTheme::BUTTON, BP_GROUPBOX, GBS_NORMAL, TMT_TEXTCOLOR, 45 gfx::NativeTheme::BUTTON, BP_GROUPBOX, GBS_NORMAL, TMT_TEXTCOLOR,
45 COLOR_WINDOWTEXT); 46 COLOR_WINDOWTEXT);
46 title_label_->SetColor(title_color); 47 title_label_->SetColor(title_color);
47 title_label_->SetMultiLine(true); 48 title_label_->SetMultiLine(true);
48 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 49 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
49 50
50 description_label_->SetMultiLine(true); 51 description_label_->SetMultiLine(true);
51 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 52 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
52 53
53 SetAccessibleName(title); 54 SetAccessibleName(WideToUTF16Hack(title));
54 contents->SetAccessibleName(title); 55 contents->SetAccessibleName(WideToUTF16Hack(title));
55 } 56 }
56 57
57 OptionsGroupView::~OptionsGroupView() { 58 OptionsGroupView::~OptionsGroupView() {
58 } 59 }
59 60
60 void OptionsGroupView::SetHighlighted(bool highlighted) { 61 void OptionsGroupView::SetHighlighted(bool highlighted) {
61 highlighted_ = highlighted; 62 highlighted_ = highlighted;
62 SchedulePaint(); 63 SchedulePaint();
63 } 64 }
64 65
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const int single_column_layout_id = 1; 135 const int single_column_layout_id = 1;
135 column_set = layout->AddColumnSet(single_column_layout_id); 136 column_set = layout->AddColumnSet(single_column_layout_id);
136 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, 137 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1,
137 GridLayout::USE_PREF, 0, 0); 138 GridLayout::USE_PREF, 0, 0);
138 139
139 separator_ = new views::Separator; 140 separator_ = new views::Separator;
140 layout->StartRow(0, single_column_layout_id); 141 layout->StartRow(0, single_column_layout_id);
141 layout->AddView(separator_); 142 layout->AddView(separator_);
142 } 143 }
143 } 144 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/star_view.cc ('k') | chrome/browser/ui/views/options/options_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698