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

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: Rename SetBackgroundColor -> SetDisplayedOnBackgroundColor 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 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 new views::BoxLayout(views::BoxLayout::kVertical, 1508 new views::BoxLayout(views::BoxLayout::kVertical,
1509 kLegalDocPadding, 1509 kLegalDocPadding,
1510 kLegalDocPadding, 1510 kLegalDocPadding,
1511 0)); 1511 0));
1512 footnote_view_->set_border( 1512 footnote_view_->set_border(
1513 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor)); 1513 views::Border::CreateSolidSidedBorder(1, 0, 0, 0, kSubtleBorderColor));
1514 footnote_view_->set_background( 1514 footnote_view_->set_background(
1515 views::Background::CreateSolidBackground(kShadingColor)); 1515 views::Background::CreateSolidBackground(kShadingColor));
1516 1516
1517 legal_document_view_ = new views::StyledLabel(string16(), this); 1517 legal_document_view_ = new views::StyledLabel(string16(), this);
1518 legal_document_view_->SetDisplayedOnBackgroundColor(kShadingColor);
1519
1518 footnote_view_->AddChildView(legal_document_view_); 1520 footnote_view_->AddChildView(legal_document_view_);
1519 footnote_view_->SetVisible(false); 1521 footnote_view_->SetVisible(false);
1520 1522
1521 return footnote_view_; 1523 return footnote_view_;
1522 } 1524 }
1523 1525
1524 views::View* AutofillDialogViews::CreateOverlayView() { 1526 views::View* AutofillDialogViews::CreateOverlayView() {
1525 return overlay_view_; 1527 return overlay_view_;
1526 } 1528 }
1527 1529
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2237 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2236 : section(section), 2238 : section(section),
2237 container(NULL), 2239 container(NULL),
2238 manual_input(NULL), 2240 manual_input(NULL),
2239 suggested_info(NULL), 2241 suggested_info(NULL),
2240 suggested_button(NULL) {} 2242 suggested_button(NULL) {}
2241 2243
2242 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2244 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2243 2245
2244 } // namespace autofill 2246 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698