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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 17756003: Colors in views::StyledLabel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fix Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/views/autofill/autofill_dialog_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 new views::BoxLayout(views::BoxLayout::kVertical, 1383 new views::BoxLayout(views::BoxLayout::kVertical,
1384 kLegalDocPadding, 1384 kLegalDocPadding,
1385 kLegalDocPadding, 1385 kLegalDocPadding,
1386 0)); 1386 0));
1387 footnote_view_->set_border( 1387 footnote_view_->set_border(
1388 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); 1388 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor));
1389 footnote_view_->set_background( 1389 footnote_view_->set_background(
1390 views::Background::CreateSolidBackground(kShadingColor)); 1390 views::Background::CreateSolidBackground(kShadingColor));
1391 1391
1392 legal_document_view_ = new views::StyledLabel(string16(), this); 1392 legal_document_view_ = new views::StyledLabel(string16(), this);
1393 legal_document_view_->SetBackgroundColor(kShadingColor);
1394
1393 footnote_view_->AddChildView(legal_document_view_); 1395 footnote_view_->AddChildView(legal_document_view_);
1394 footnote_view_->SetVisible(false); 1396 footnote_view_->SetVisible(false);
1395 1397
1396 return footnote_view_; 1398 return footnote_view_;
1397 } 1399 }
1398 1400
1399 views::View* AutofillDialogViews::CreateOverlayView() { 1401 views::View* AutofillDialogViews::CreateOverlayView() {
1400 gfx::Image splash_image = controller_->SplashPageImage(); 1402 gfx::Image splash_image = controller_->SplashPageImage();
1401 if (splash_image.IsEmpty()) 1403 if (splash_image.IsEmpty())
1402 return NULL; 1404 return NULL;
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2088 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2087 : section(section), 2089 : section(section),
2088 container(NULL), 2090 container(NULL),
2089 manual_input(NULL), 2091 manual_input(NULL),
2090 suggested_info(NULL), 2092 suggested_info(NULL),
2091 suggested_button(NULL) {} 2093 suggested_button(NULL) {}
2092 2094
2093 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2095 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2094 2096
2095 } // namespace autofill 2097 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698