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

Side by Side Diff: chrome/browser/chromeos/ui/echo_dialog_view.cc

Issue 1407093007: Autofill: Add legal message footer to save credit card bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chromeos/ui/echo_dialog_view.h" 5 #include "chrome/browser/chromeos/ui/echo_dialog_view.h"
6 6
7 #include "chrome/browser/chromeos/ui/echo_dialog_listener.h" 7 #include "chrome/browser/chromeos/ui/echo_dialog_listener.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/gfx/font.h" 10 #include "ui/gfx/font.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 145
146 bool EchoDialogView::ShouldShowWindowTitle() const { 146 bool EchoDialogView::ShouldShowWindowTitle() const {
147 return false; 147 return false;
148 } 148 }
149 149
150 bool EchoDialogView::ShouldShowWindowIcon() const { 150 bool EchoDialogView::ShouldShowWindowIcon() const {
151 return false; 151 return false;
152 } 152 }
153 153
154 void EchoDialogView::StyledLabelLinkClicked(const gfx::Range& range, 154 void EchoDialogView::StyledLabelLinkClicked(views::StyledLabel* label,
155 const gfx::Range& range,
155 int event_flags) { 156 int event_flags) {
156 if (!listener_) 157 if (!listener_)
157 return; 158 return;
158 listener_->OnMoreInfoLinkClicked(); 159 listener_->OnMoreInfoLinkClicked();
159 } 160 }
160 161
161 gfx::Size EchoDialogView::GetPreferredSize() const { 162 gfx::Size EchoDialogView::GetPreferredSize() const {
162 gfx::Size size = 163 gfx::Size size =
163 gfx::Size(kDialogLabelPreferredWidth, 164 gfx::Size(kDialogLabelPreferredWidth,
164 label_->GetHeightForWidth(kDialogLabelPreferredWidth)); 165 label_->GetHeightForWidth(kDialogLabelPreferredWidth));
165 gfx::Insets insets = GetInsets(); 166 gfx::Insets insets = GetInsets();
166 size.Enlarge(insets.width(), insets.height()); 167 size.Enlarge(insets.width(), insets.height());
167 return size; 168 return size;
168 } 169 }
169 170
170 void EchoDialogView::SetLabelBorderAndBounds() { 171 void EchoDialogView::SetLabelBorderAndBounds() {
171 label_->SetBorder(views::Border::CreateEmptyBorder(kDialogLabelTopInset, 172 label_->SetBorder(views::Border::CreateEmptyBorder(kDialogLabelTopInset,
172 kDialogLabelLeftInset, 173 kDialogLabelLeftInset,
173 kDialogLabelBottomInset, 174 kDialogLabelBottomInset,
174 kDialogLabelRightInset)); 175 kDialogLabelRightInset));
175 176
176 label_->SetBounds(label_->x(), 177 label_->SetBounds(label_->x(),
177 label_->y(), 178 label_->y(),
178 kDialogLabelPreferredWidth, 179 kDialogLabelPreferredWidth,
179 label_->GetHeightForWidth(kDialogLabelPreferredWidth)); 180 label_->GetHeightForWidth(kDialogLabelPreferredWidth));
180 } 181 }
181 182
182 } // namespace chromeos 183 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/ui/echo_dialog_view.h ('k') | chrome/browser/ui/autofill/save_card_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698