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

Side by Side Diff: chrome/browser/views/generic_info_view.cc

Issue 1561020: Hierarchy. Hierarchy. Hierarchy!!! (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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/cocoa/preferences_window_controller.mm ('k') | media/base/callback.h » ('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 "chrome/browser/views/generic_info_view.h" 5 #include "chrome/browser/views/generic_info_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "gfx/color_utils.h" 8 #include "gfx/color_utils.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "views/grid_layout.h" 10 #include "views/grid_layout.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 int layout_id, views::GridLayout* layout, views::Label* name, 91 int layout_id, views::GridLayout* layout, views::Label* name,
92 views::Textfield* value) { 92 views::Textfield* value) {
93 // Add to the view hierarchy. 93 // Add to the view hierarchy.
94 layout->StartRow(0, layout_id); 94 layout->StartRow(0, layout_id);
95 layout->AddView(name); 95 layout->AddView(name);
96 layout->AddView(value); 96 layout->AddView(value);
97 97
98 // Color these borderless text areas the same as the containing dialog. 98 // Color these borderless text areas the same as the containing dialog.
99 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE); 99 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE);
100 100
101 // Init them now that they're in the view heirarchy. 101 // Init them now that they're in the view hierarchy.
102 value->SetReadOnly(true); 102 value->SetReadOnly(true);
103 value->RemoveBorder(); 103 value->RemoveBorder();
104 value->SetBackgroundColor(text_area_background); 104 value->SetBackgroundColor(text_area_background);
105 } 105 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | media/base/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698